Email attachment functionality not working in Drupal website
P粉426780515
P粉426780515 2023-09-12 10:26:49
0
1
527

After upgrading to Drupal 9 and PHP 8 versions, I cannot send emails with attachments. We are encountering the following issues

PHPMailer\PHPMailer\Exception: Unable to access file: in PHPMailer\PHPMailer\PHPMailer->addAttachment() (line 3182 of vendor/phpmailer/phpmailer/src/PHPMailer.php).

P粉426780515
P粉426780515

reply all(1)
P粉511749537

As the error says, this means that your script cannot access the file you asked it to attach.

I recommend checking the ownership and permissions of the relevant files.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template