Webform attachments not sending

Created on 4 November 2024, about 1 month ago

Problem/Motivation

On 8.x-2.2, the webform attachments on S3FS were sending correctly.

After upgrading to 8.x-2.3, the webform attachments stopped attaching.

Steps to reproduce

1. Create a test webform with a File element.
2. Set up email handler with 'Include files as attachments' enabled.
3. Use Sendgrid_integration
4. Submit Webform with file attachment.

Email does not contain any attachments.

Proposed resolution

I believe the issue is because of

        if (isset($attachment['filepath'])) 

in SendGridMail.php

For Webform attachments, the filepath has the private path, but the actual attachment is in $attachment['filecontent'].

In previous version the check was isset($attachment['uri']), which was empty, and would go to the else condition to process the attachment correctly.

πŸ› Bug report
Status

Active

Version

2.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States spfoos

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

Comments & Activities

Production build 0.71.5 2024