Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Send mail with attachment using only SMTP

by tachyon-II (Chaplain)
on May 29, 2008 at 18:43 UTC ( [id://689064]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $smtp->datasend("Content-type: multipart/mixed; 
    boundary=\"frontier\"\n");
    ...
    
    $smtp->datasend("Content-type: multipart/mixed; 
        boundary=\"frontier\"\n");
    
  2. or download this
    my $body   = ....
    my $attach = ....  # base 64 encoded data
    ...
    $smtp->datasend($email)
    $smtp->dataend()
    $smtp->quit;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found