in reply to Re^4: SMTP auth() command not supported on smtp.live.com
in thread SMTP auth() command not supported on smtp.live.com
Aaah - I think I fought MIME::Lite on that front at one time. If you are on Windows, MIME::Lite does not always know to binmode the file used for an attachment. For .xls files, I now manually patch the mime type to application/vnd.ms-excel, which seems to do what I need, but I have old and disabled code that forced a binary attachment:
$msg->attach( Type => $type, Disposition => 'attachment', Path => $filename, Filename => basename($filename), Binmode => 1, );
If you are not on Windows, or that does not fix the problem, are you sure that the files to be attached have been written completely and their filehandles closed?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: SMTP auth() command not supported on smtp.live.com
by lighterjoul (Initiate) on Jan 17, 2013 at 09:45 UTC | |
by lighterjoul (Initiate) on Jan 17, 2013 at 09:53 UTC | |
by Corion (Patriarch) on Jan 17, 2013 at 09:56 UTC | |
by lighterjoul (Initiate) on Jan 18, 2013 at 01:56 UTC |