Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 musing on the Monastery: (5)
As of 2014-12-28 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls