Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Send mail with attachment using only SMTP

by almut (Canon)
on May 29, 2008 at 17:52 UTC ( #689060=note: print w/replies, xml ) Need Help??


in reply to Send mail with attachment using only SMTP

there is an attachment, but it is almost empty, unreadable file

If you look at the raw mail message, does it look like you would expect?

$smtp->datasend("Content-type: multipart/mixed; boundary=\"frontier\"\n");

Is that line wrap after multipart/mixed; just an artifact of cut-n-pasting, or is that in your actual code like this? (hint: the Content-type header should be one line)

___

(BTW, if you closed your code tags like this </code>, you wouldn't have the problem with [$_] being turned into links... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689060]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2018-06-19 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (114 votes). Check out past polls.

    Notices?