Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending binaries as email attachments in perl

Status
Not open for further replies.

akoo1

Programmer
Jan 5, 2001
1
US
How do I send attachments in binary to a mail program in perl? I'm trying to avoid sendmail since it is pretty weird to use. Is there a way to spawn a shell and then use a unix mail program to send my attachments in binary format?

Please enlighten me. Thanks

Tony
 
Use the module mail::sender (It handles attachments!)
Documentation with examples found at: Location for download(among others): ftp://ftp.sunet.se/pub/lang/perl/CPAN/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Sender-0.7.04.tar.gz

(Later versions available!)

Install the module and enjoy;
makefile.pl
nmake
nmake test
nmake install

I have used it in NT environment to send mail with attatchments to a SMTP-server, and it performs excellent!

Good luck!

\\ake
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top