http://www.perlmonks.org?node_id=1013739


in reply to Re^5: SMTP auth() command not supported on smtp.live.com
in thread SMTP auth() command not supported on smtp.live.com

Hi, Corion, Thanks for your reply. I'm on Windows, I don't know basename() function, so I changed to absolutely path, but I still got the same result, the pdf file is not correct.
my $filename = "E:/test.pdf"; my $type = "application/pdf"; $msg->attach( Type => $type, Disposition => 'attachment', Path => $filename, Filename => $filename, Binmode => 1, ) or die "Error adding PDF: $!\n";