Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^6: SMTP auth() command not supported on

by lighterjoul (Initiate)
on Jan 17, 2013 at 09:45 UTC ( #1013739=note: print w/replies, xml ) Need Help??

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

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";

Replies are listed 'Best First'.
Re^7: SMTP auth() command not supported on
by lighterjoul (Initiate) on Jan 17, 2013 at 09:53 UTC
    opps.. it seems very interesting, in that program, the attachment size is always 11.4KB, no matter what file type and what file strange..

      I would try with a mail sender and recipient that are not hotmail, and I would also try sending a plain text attachment.

      If sending a plain text attachment works, then it is a problem with binmode not being applied, somewhere along the chain.

      If the problem goes away by not using Hotmail as the first SMTP server, or goes away by using a different recipient than Hotmail, then the problem is how Hotmail handles (this kind of) attachments.

      I had tried with other email account (not hotmail), however, things become more interesting. The orignal pdf file is cuted by many small files, each file has the same file name and file size(11.4KB). I guess that would not the problem of the email account, but the problem of the programe.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013739]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2018-08-20 22:32 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (196 votes). Check out past polls.