good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How do I send an email with Perl (including an attachment)?by fongsaiyuk (Pilgrim) |
on Dec 06, 2000 at 19:29 UTC ( [id://45225]=note: print w/replies, xml ) | Need Help?? |
I use Mail::Sender pretty extensively. Here's a code snippet to get you started for sending an email with an attachment. (We let the user's email client determine the helper application to execute based on the file extension of the filename we attach to the message.) Mail::Sender lets you customize the MIME stuff, but for simple single files you don't need to do that.
I really like this module. You should seriously consider installing it if you find that you are doing a lot with emailing attachments. It has saved me tons of time.
In Section
Seekers of Perl Wisdom
|
|