Subject: | Woes with apostrophes in To |
Running on Windows XP;
An apostrophe in the To argument of the MailMsg method results in a truncated address at the server.
EG setting To => 'adam.o\'clarke@strategicdata.com.au' results in Mail::Sender sending the following to the server (truncated and de-identified debug output appears below).
Show quoted text
>> 220 mail.u s.com.au ESMTP Postfix
<< ehlo Station03
Show quoted text>> 250-mail.u s.com.au
>> 250-PIPELINING
Show quoted text>> 250-SIZE 10240000
Show quoted text>> 250-VRFY
Show quoted text>> 250-ETRN
Show quoted text>> 250-XVERP
Show quoted text>> 250 8BITMIME
<< mail from: <support@u s.com.au>
Show quoted text>> 250 Ok
<< rcpt to: <Clarke@u s.com.au>
Show quoted text>> 250 Ok
<< data
Show quoted text>> 354 End data with <CR><LF>.<CR><LF>
<< To: Adam.O'Clarke@u s.com.au