I was looking at this module to send mail through an external SMTP server and saw that it did not support attachments.
I added some code from the smtp module to the file phpmailer.class.inc in the mail() function that checks for attachments in the $message array and uses the AddAttachment method to add any that are present. This seems to work well in tests.
Is there a reason for not including attachment functionality in the module and would you like a patch added to this issue?
| Comment | File | Size | Author |
|---|---|---|---|
| phpmailer-attachment-patch.txt | 590 bytes | lightjuice |
Comments
Comment #2
lubwn commentedHey, having the same problem as you. Thank you very much for provided patch. I tried to apply it and getting and error "File error: Could not access file:".
I will try to debug this.
Comment #3
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.