I'm trying to get email to work on a win2003 server. I have been given a .pl file that contains all the code but was written to run on a different platform. I've been trying to figure out what I have to do for a few weeks now and really need to get this working. here is the code that does the actual emailing within the .pl file. I beleive it was written for Linux, I need to figure out what to change. I have put the sendmail.pl file in the appropriate folder but can't figure out what needs to be changed from there. any help or direction on where I can get info to figure this out is much appriciated.
open (MAIL, "|/usr/sbin/sendmail -t") || warn print "Can't send mail: $!\n";
print MAIL<<"EMAIL";
From: $from
To: $emailaddress
BCC: $notify_email
Subject: Welcome to AtlanticCanadaRealty.com!
Welcome!
Please make a note of the following information. You will need it if you want to modify your ad.
Username: $orig_username
Password: $password
IP Logged: $ENV{REMOTE_ADDR}
To post or edit your ad, click here:
[url]http://[/url]$domain/$path_to_cgi?id=$orig_username&pw=$password
EMAIL
close(MAIL);
exit;
}
tia