{ 19 comments… read them below or add one }

1 Frank Wiles May 31, 2007

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

Reply

2 javier villarca cao September 13, 2007

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

Reply

3 hamsinv September 16, 2008

Hello Vivck,

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

Reply

4 vivek September 16, 2008

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

Reply

5 Abhishek January 8, 2009

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

Thanks again :)

Reply

6 Vipin February 25, 2009

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

Reply

7 Austin February 26, 2009

Vipin

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

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

Austin

Reply

8 Eric May 18, 2009

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?

Reply

9 Rajiv July 3, 2009

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.

Reply

10 Abhijeet August 24, 2009

Sear sir i am not able to use the mail() of php of my yahoo small nusiness hosting kindly help

Reply

11 Daniel October 1, 2009

This is simplest, and most effective script for sending a simple mail. I wonder if it can expand to more for HTML, Attatchment, Reply etc…

Reply

12 NMarcu October 6, 2009

Hello all,

Have somebody a perl script with postfix?

Reply

13 Sandip October 26, 2009

Can this be modified to work in Windows in an Outlook MS/Exchange environment? If so, how?

Reply

14 Nadeem Gul November 13, 2009

Its quite simple and handy.

Can someone tell me how do to send attachment using this script?

Thanks,

Reply

15 Srinidhi January 19, 2010

looks good…

can you tell me if I can get a pearl script for loging on to a public mail server with my login ID and pass word and forward it to an other mail account?

Reply

16 Davidmoreen March 29, 2010

Great job, worked the first time!

Reply

17 Nisha Babu June 9, 2010

Could you please provide me a perl script to download a file from mail attachment.

Thanks,
Nisha

Reply

18 Soundar December 5, 2010

hi, how i define SMTP server addess ? basically i wanted to send a mail after success of my cron job with log.

Reply

19 priyanka November 23, 2011

can anyone help me out .. i m begineer with perl… i need to send a mail but getting errors related to smpt server n port number….
my email id : priyankapagaria89@gmail.com

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 12 + 6 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the simple math so we know that you are a human and not a script.




Previous post:

Next post: