Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in send mail #672

Open
serjsv87 opened this issue Jun 14, 2023 · 2 comments
Open

Error in send mail #672

serjsv87 opened this issue Jun 14, 2023 · 2 comments
Labels
Bug Something isn't working V-1.2.0 Regarding V-1.2.0 issues

Comments

@serjsv87
Copy link

serjsv87 commented Jun 14, 2023

Bug report version 1.2.0

I wanted to expand the correct error occurred: Notice: Trying to access array offset on value of type null" and no email was sent.
After much research I fixed the problem for me by adding a check into the
vendor/uvdesk/core-framework/Services/EmailService.php
in the Configure email headers part

            if ( is_array($value) ){
                continue;
            }
        // Configure email headers
        $emailHeaders = $email->getHeaders();

        foreach ($headers as $name => $value) {
            if (is_array($value) && !empty($value['messageId'])) {
                $value = $value['messageId'];
            }
            if ( is_array($value) ){
                continue;
            }
            $emailHeaders->addTextHeader($name, $value);
        }

It didn't take away the warning, but the agent started getting emails

I could create a poolrequest, but unfortunately I don't know how to do it.

@komal-sh-27 komal-sh-27 added the V-1.2.0 Regarding V-1.2.0 issues label Jun 14, 2023
@komal-sh-27
Copy link
Contributor

@serjsv87

We have noticed already this issue. Thanks for the reporting here.
If you want to create pull request so please check the below link:
https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/

We will try to fix this error in v-1.2.0 uvdesk.

@komal-sh-27 komal-sh-27 added the Bug Something isn't working label Jun 14, 2023
@piyushkalawatiyakdl
Copy link

piyushkalawatiyakdl commented Jun 27, 2023

Subject: Contribution Offer: Fixing Open Issue/Bug in Your Project

Hello Komal ! I'm experienced in this and interested in contributing to your open source project. I can address the open issue/bug by analyzing, developing a solution, and providing documentation. Let's collaborate and enhance your project together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working V-1.2.0 Regarding V-1.2.0 issues
Projects
None yet
Development

No branches or pull requests

3 participants