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

Re: Send mail with attachment using only SMTP

by tachyon-II (Chaplain)
on May 29, 2008 at 18:43 UTC ( #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
Node Status?
node history
Node Type: note [id://689064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-11-26 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (166 votes), past polls