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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attachment to Bulk Email

Status
Not open for further replies.

bnc123

Technical User
Mar 25, 2001
59
AU
Being an Office Bearer of a modest sized association and its webmaster at the same time, every once in a while I need to send out emails with attachments to all the members. I have created an HTML form in which I type the subject and body of the email. This in turn activates a Perl script written by me, which reads names and email addresses from a text file and sends away emails (without attachments) to each member. So far so good.

But what if I need to attach a pdf of jpg along with this bulk email. I know I can do it using an email client. But I would like to do it using the same HTML form.

I believe CPAN has some modules for this purpose. But I have never followed how to use these modules or how to incorporate them with my CGI Perl scripts. Their documentation is very brief, complicated and too advanced for a simpleton like me.

Can some kind soul out there take a few minutes of his/her time and give me STEP by STEP instructions on how to use the CPAN module (or any other module) to achieve my purpose.

My knowledge of Perl and CGI is very elementary, so I will need an in-depth tutorial.

My website runs on a UNIX server and I use cgi-lib.pl.

Thanks in advance.

 
Check out Mime::Lite for the encoding of your e-mail with attachments. It works well with the Net::SMTP module for sending the actual e-mail.

- Rieekan
 
Thanks Rieekan,

Yours is exactly the kind of reply I did not want.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top