25 May 2021, 13:08

@DD

As I checked your issue . this is because your raw content.

Update the following path function given below :

  1. Open the MailboxService file, path of this file is given here :
    -> project-name\vendor\uvdesk\mailbox-component\Services\MailboxService.php

  2. Find the function "getEmailAddress" , you can also see this function around line 150.

  3. Take a backup of the code first and then delete the whole function (only getEmailAddress function) and paste the given code there .

public function getEmailAddress($addresses)
{
$check_mail = "";
foreach ((array) $addresses as $address) {
if($address['address'] != null){
$email = explode(" ",$address['address']);
$check_mail = $email[1];
}
$check_mail = $check_mail ?? $address['address'];
if (filter_var($check_mail, FILTER_VALIDATE_EMAIL)) {
return $check_mail;
}
}
return null;
}

Now, save the file and run the mailbox refresh command.

I hope this will work , if not please let me know .