Email attachments no longer working

Created on 3 April 2023, about 1 year ago
Updated 5 April 2023, about 1 year ago

Using Webforms Scheduled Task via cron to send CSV file attachment of all form data via email daily.
Up until PHPMailer with SMTP version 2.2.2 the scheduled email included the attachment. This morning, after installing the newest version over the weekend, no attachment is included with the email.
No amount of configuration changes solved the problem.
Temporarily installed SMTP Authentication Support in order to get attachments included again.

πŸ› Bug report
Status

Closed: duplicate

Version

2.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @MagpieMagic
  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

    What are the steps to replicate the problem? What happens with Webform submissions with attachments when emails aren't scheduled?

  • Step 1. WebForm data is submitted from any WebForm.
    Step 2. WebForm Scheduled Task module ( https://www.drupal.org/project/webform_scheduled_tasks β†’ ) is configured to gather the form data in CSV format and email the data to a list of recipients once daily.
    Step 3. Cron event is scheduled and run once daily.
    Step 4. Cron event triggers WebForm Scheduled Task module to run and:
    a: writes the CSV file to the Private directory.
    b: send an email message to the list of recipients with the CSV file attached.
    c: (option) deletes the form data.
    Error: Step 4, b. Email is sent, but the CSV file is not attached.

    SMTP Authentication Support module ( https://www.drupal.org/project/smtp β†’ ) successfully performs Step 4, b.

  • Status changed to Active about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

    Thanks, I can replicate the problem.

  • Status changed to Closed: duplicate about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

    I've reverted the previous change. Let's fix this in the original issue.

Production build 0.69.0 2024