search

Home  >  Q&A  >  body text

Email attachment functionality not working in Drupal website

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粉426780515P粉426780515549 days ago600

reply all(1)I'll reply

  • P粉511749537

    P粉5117495372023-09-13 09:31:35

    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.

    reply
    0
  • Cancelreply