Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sending mail with attachment in Perl

by true (Pilgrim)
on Oct 17, 2004 at 23:56 UTC ( [id://400005]=note: print w/replies, xml ) Need Help??


in reply to Sending mail with attachment in Perl

FYI here only, The thing that makes an attachment in an email is a MIME header. All you are doing is dividing your text message into different parts via boundaries. You set a boundary and use it to delimit the parts of your mail message. MIME headers follow their own set of rules. Example, two \n's specify a seperation between the head and body. MIME types are diverse and give you a number of options for nesting binary data into your email. All mail messages have content-type headers just like html pages. So a message with an attached picture would be a mixed content type. Boundaries specify where the parts are and each seperate part can also have its own content-type headers.

Obviously, a module is the fastest was to work with MIME, but if you need to go deeper the above is just a nutshell.

jtrue
  • Comment on Re: Sending mail with attachment in Perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found