Closed (fixed)
Project:
SMTP Authentication Support
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2007 at 22:45 UTC
Updated:
22 Dec 2007 at 04:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
matthewc-1 commentedTwo more major problems with this module:
1. Multiple "to" addresses can be passed to drupal_mail_wrapper() in $to, however smtp lumps them all together and passes on to phpmailer's AddAddress() which is only designed to receive one recipient at a time - therefore sending to multiple recipients fails.
2. Content-Type headers are duplicated if already added in the $body passed to drupal_mail_wrapper(). This leads to malformed messages, e.g. when an attachment is sent by mass_contact module.
I've added my fixes for these two issues to the attached patch, along with the fix for the bcc issue.
Edit: patch updated to take into account recipients where just the address is given and no name, i.e. "user@example.com" rather than "user@example.com <Example User>"
Thanks
Matthew
Comment #2
oadaeh commentedThe fix for the headers problem has been committed here: http://drupal.org/cvs?commit=90617
Comment #3
oadaeh commentedThe fix for the multiple recipients problem has been committed here: http://drupal.org/cvs?commit=90656
Comment #4
oadaeh commentedThe fix for BCC recipients problem has been committed here: http://drupal.org/cvs?commit=90657
Comment #5
oadaeh commentedThe code for passing through a pre-formated body has been committed here: http://drupal.org/cvs?commit=90662
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.