Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689060]
[Corion]: Discipulus: Yeah, I rediscovered it when I wanted to have a simple (cross-platform) wrapper for my OpenGL program so it has a nice window etc
[Corion]: ... and one thing leads to another, so ambrus provided the integration with AnyEvent so I can now conveniently make HTTP requests from that app too :)
[Corion]: I'm afraid that I'll turn off dk some day with all my bug reports or stuff that could be documented better ;-)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2016-12-09 09:16 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (150 votes). Check out past polls.