Subject: | attachments syntax bug |
Date: | Sat, 22 Oct 2011 23:18:37 -0700 (PDT) |
To: | bug-Email-Send-SMTP-Gmail [...] rt.cpan.org |
From: | Mike Bennett <mikesdocuments [...] yahoo.com> |
In the -attachments option, the parsing of the string does not handle whitespace well.
examples :
-attachments=>'C:\perl\testfiles\d1.txt,C:\perl\testfiles\d2.txt' SUCCEEDS
-attachments=>'C:\perl\testfiles\d1.txt, C:\perl\testfiles\d2.txt' FAILS to attach d2.txt
-attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt, ' FAILS
-attachments=>'C:\perl\testfiles\d1.txt,c:\perl\testfiles\d2.txt,' SUCCEEDS
Suspect there will also be problems if tabs and newlines are included in the attachments string.
Work-arounds are possible of course - it just that usually you'd expect the whitespace to be ignored automatically.
However, thanks so much for providing this module - It's the only one which works with a) windows b) with gmail and c) with attachments - very useful indeed!
Please publicize the module more widely - I see many people on the blogs struggling with email in perl.
Mike