Where Can I Get A SendMail Prog That Will Run On An IIS Server With Matt's FormMail Script. I'm Using ActiveState's ActivePerl.
Yes, I Am As Newbie As It Gets. :-P
IIS comes with an SMTP service, it was running on the server I was given to work with already
If you have the C:\inetpub\mailroot directory on your machine then it will be installed (but you may need to start it).
You can use the SMTP service by writing a text file in the right format and copying it into the pickup directory (which I think is in the mailroot directory).
format is as follows:
*************************
x-sender: sender@blah.com
x-receiver: receiver@blah.com
From: sender@blah.com
To: receiver@blah.com
Subject: blah
blah blah blah.
************************
the message will then automatically be sent, or saved to the badmessage directory if the format was wrong.
You need to edit the perl script to send a text file of the email message to the pickup directory every time it sends an email message. The chances are this will handled by a single script which is called from other scripts to send emails, and you'll only need to edit that one script.
Also you might have a problem if two users click 'send' at the same time, so you need to generate random filenames for the email text files to make sure they don't overwrite each other half way through being sent.
It wasn't pretty but it worked for my low traffic forums.
Unfortunately this was a while ago, and I no longer have the code, sorry.
I got the information on the smtp service from "administering IIS4" by mitch tulloch, but it worked fine on IIS5.