PDA

View Full Version : UNIX to windows


ACJavascript
05-19-2003, 06:39 PM
Hello all!

Okay heres my question.

Usualy in unix (linux) servers they use sendmail such as this:

/usr/sbin/sendmail

now that doesn't work on windows servers.. and the reason is they use smtp right???

second

If you use the unix type as below how could you change it to accomodate windows.

$mailprog="/usr/sbin/sendmail";

open(MAIL,"|$mailprog -t") || print "IT WONT WORK!";
print MAIL "To: ... ";
print MAIL "Subject:....";
ect.....

???? Any help is most apprecaited.

Thanks!

bcarl314
05-20-2003, 08:51 PM
Actually, smtp is the protocol (Simple Mail Transport Protocol) which is the standard for sending email. Windows applications also use smtp to send mail, however they are not command line programs like sendmail, but rather GUIs like Outlook. If your on W2K or XP, you can run your own SMTP server, although I've never done it. Then you could use PERL or something similar to send email as you suggest below.