Click to See Complete Forum and Search --> : mail script in perl instead of using sendmail


tasneem
03-09-2006, 03:12 PM
Hello
I have a perl script which uses sendmail to send a form to email. Since I have windows hosting, and dont have Sendmail program, I want to use alternate SMTP way to send it. Can some one help me? Here is the code:

# Location of the sendmail program
$sendmail = '/usr/bin/sendmail'; ---- this I have to change to what?
# Your e-mail address here
$myemail = 'myemail@mydomain.com';


Thanks

ps: Please look at http://pixelbiz.des-us.com/userpages, where I have put up the script. I get this error on clicking on new page:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Thanks again.

chrisranjana
03-14-2006, 06:02 AM
One way is to use this perl module

http://www.tneoh.zoneit.com/perl/SendMail/

tasneem
03-14-2006, 11:05 AM
Hi
I have downloaded the code, will check it out and post here.
thanks

chrisranjana
03-21-2006, 06:29 AM
Hope the code is working fine for you