>> From: Shane Greer >> Sent: Thursday, March 29, 2001 2:30 PM
>> We're having problems sending emails through script code. The code worked fine in the past, but people were using our servers to spam, so we changed to the "No Relay" setting. <<
In general, the problem is likely that you did not include the local machine's IP address in Imail's range of permitted addresses. Many people forget that the local machine may be using "127.0.0.1" as its own IP address!
>> We swapped back to "Relay for all", but it didn't help. <<
Jmail and CDONTS use two entirely different technologies. I have to question how long ago one or the other actually STOPPED working without you realizing. Obviously, if all you had changed was the Relay settings and then changed them back - it works (or doesn't work) JUST as it did before.
However, keep in mind, you may have to stop and restart the Imail SMTP service AFTER changing the relay options!
>> We are using "jmail" and "CDONTS" to send email via script. <<
1. Jmail uses SMTP to talk directly to your local Imail SMTP server. So THAT is effected by your Imail Relay settings. Keep the 127.0.0.1 issue in mind. If you check the Imail logs right after sending a test mail - you should get some indication how Imail reacted to the connection attempt.
2. CDONTS uses a Microsoft-internal API to talk to (and ONLY to) the Microsoft IIS SMTP service. The IIS SMTP service also has log files (\System32\Logfiles\) that you can check.
Check the IMail knowledge base. It has various entries that answer the frequently asked questions regarding setting up MS SMTP or CDO/NTS to work alongside of IMail. One of these entries even goes into the issue of relaying.
>> Any ideas why the script email method has stopped working all of a sudden? <<
Since you have two distinct problems with two distinct technologies I suspect that at least ONE of them did not stop working "all of a sudden". If your IIS SMTP service was "stopped" and never set up to use a different port number - then this has not worked for a long time.
Best Regards Andy Schmidt
Argos Networks 600 East Crescent Avenue Suite 203 Upper Saddle River, NJ 07458-1846
Phone: +1 201 934-9411 x20 (Business) Fax: +1 201 934-9206
http://www.ArgosWeb.net/