Hello,
I set up the following script on my dedicated server running Windows 2003 Server. It's using ASP and JMail and it runs as a VBS file:
==========================
==
set msg = CreateObject("JMail.Messag
e")
msg.ContentType = "text/plain"
msg.From = "test@mydomain.co.uk"
msg.AddRecipient "test2@mydomain.co.uk"
msg.Subject = "Test Message Subject"
msg.Body = "Test Message Body"
msg.Send(Server1) 'The name of my dedicated server and the domain listed under the Defaul Virtual SMTP Server in IIS.
msg.Close
==========================
==
This works fine, I am now trying to move the script over to a server in my office using Windows Small Business Server 2003 with Microsoft Exchange. This is where I hit a problem.
In theory, the only line I needed to change is the second to last line of the script, the one that refers to the servername. However, because I'm running Microsoft Exchange there is no Default Virtual SMTP Server listed in IIS. I've tried changing this to sbs2003 (the name of my office server) or mynetwork (the name of the office domain) or sbs2003.mynetwork.local, mynetwork.local but none of these work.
I receive the same error every time:
"jmail.Message: The message was undeliverable. All servers failed to receive the message"
It is as if Exchange is blocking the e-mail being sent (although it doesn't appear in the BadMail directory) but I can't see why. Exchange should allow the email to go through because I'm running the VBS file as an administrator on the same machine.
I don't think it's a problem with JMail because I've had a similar problem when using other mail scripts. I have been able to send the mail using CDO because no SMTP server is needed but I need to send it through JMAIL because of the other features I plan to use.
I've looked through the Internet for the last couple of days, I've found other people with similar problems and tried various ASP solutions but I think it's something to do with Exchange.
Need your help experts!
Ell.