uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
7.15k stars 449 forks source link

Error in send mail #672

Open serjsv87 opened 1 year ago

serjsv87 commented 1 year ago

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 commented 1 year ago

@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.

piyushkalawatiyakdl commented 1 year ago

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.