in reply to Sending An Attachment Using Net::SMTP
You're not actually sending the contents of the file. For that, you have to open the file, read it (possibly in blocks), and send it through SMTP.
You really ought to encode it in base64 encoding, for which you'd be best off installing a module, if you don't have it already: MIME::Base64, or as a fallback measure, MIME::Base64::Perl.
The latter is in Pure Perl, you can install it by just copying it to a proper location.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sending An Attachment Using Net::SMTP
by njweatherman (Sexton) on Mar 22, 2008 at 08:52 UTC | |
by hipowls (Curate) on Mar 22, 2008 at 09:44 UTC | |
by NetWallah (Canon) on Mar 22, 2008 at 15:48 UTC | |
by bart (Canon) on Mar 22, 2008 at 14:37 UTC |
In Section
Seekers of Perl Wisdom