Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When checking the option Provide simple plain/text alternative of the HTML mail to send multipart emails, I'm getting this warning:
Notice: Uninitialized string offset: -1 em SmtpMailSystem->_get_substring() (linha 734 de ./modules/contrib/smtp/smtp.mail.inc).
Also I'm getting an undesirable string ($boundary and content-type) on the of my email body:
np57b704049e36f Content-type: text/html;charset=utf-8
Comment | File | Size | Author |
---|---|---|---|
#6 | multipart-alternative-email-2786907-6.patch | 2.39 KB | monstrfolk |
|
Comments
Comment #2
monstrfolk CreditAttribution: monstrfolk commentedThis is due to using HTML Mail with SMTP Authentication module. Don't know if the bug is because of this module or SMTP Authentication module.
See here... https://www.drupal.org/node/2847707
Comment #3
monstrfolk CreditAttribution: monstrfolk commentedThis is a problem with this module.
Content-type
should beContent-Type
This....
multipart/alternative;boundary=np588cdd5569378
Should be.... (boundary key is wrapped in quotations)
multipart/alternative;boundary="np588cdd5569378"
Looks like someone got tired while coding :)
Comment #4
monstrfolk CreditAttribution: monstrfolk commentedComment #5
salvisThank you for the analysis and patch, monstrfolk!
Two double-quotes cannot be right.
Also, according to the example in https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html the double quotes are not mandatory, but I guess the don't hurt.
Comment #6
monstrfolk CreditAttribution: monstrfolk commentedLooks like I got tired while coding. My IDE added extra quotes and I did not notice. Also, found 2 small spelling mistakes.
Comment #7
monstrfolk CreditAttribution: monstrfolk commentedComment #9
salvisThanks, monstrfolk!