{ 9 comments… read them below or add one }

1 Frank Wiles 05.31.07 at 4:44 pm

I’d suggest not using Sendmail directly, but instead using a module like MIME::Lite::TT or MIME::Lite::TT::HTML for lots of various reasons.

I put together a small howto for using those modules at:
http://www.revsys.com/writings/perl/sending-email-with-perl.html

2 javier villarca cao 09.13.07 at 2:33 pm

thanks for the perl code… It really helped me a lot. After experimenting on at least a dozen codes and techniques, your code, though simple as it is, made my routine work… Thanks again
Javier

3 hamsinv 09.16.08 at 6:07 am

Hello Vivck,

Good one. Could you please clarify if this code compatible with Rad hat and SUSE.

4 vivek 09.16.08 at 6:26 am

Perl is cross platform scripting language i.e. it should work under any UNIX like operating system.

5 Abhishek 01.08.09 at 10:57 am

Thanks a lot for this script.. i think this could be the simplest script..

Thanks again :)

6 Vipin 02.25.09 at 12:21 pm

The code which is above is good I have one doubt in that How to send mail to multiple
mail address

7 Austin 02.26.09 at 9:02 pm

Vipin

I believe you just have add multiple emails with comma at the end of each address.

$to = “,address2,address3,…..”

Austin

8 Eric 05.18.09 at 9:21 pm

this should work great, but i am having trouble finding any email servers that would offer a cgi-bin for you to access…

could you recommend any?

9 Rajiv 07.03.09 at 4:23 am

This scripts is OK if you just need test how things work. If you need to send mails to a lot of people, then you need to look at many other aspects (correct headers, spf records etc.) so that your domain or IP does not end up in e-mail black lists.

If you are a webmaster and plan to send large number of e-mails from scripts, you need to do a bit of a home work.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , , , , , , , , , , ,

Previous post: Howto find out perl version

Next post: How can I log in as root?