community-skeleton icon indicating copy to clipboard operation
community-skeleton copied to clipboard

Error in send mail

Open serjsv87 opened this issue 2 years ago • 2 comments

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.

serjsv87 avatar Jun 14 '23 09:06 serjsv87

@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 avatar Jun 14 '23 12:06 komal-sh-27

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.

piyushkalawatiyakdl avatar Jun 27 '23 20:06 piyushkalawatiyakdl