perhaps your smtp server isn't setup for relay.
Main Topics
Browse All TopicsI have an ASP page that contains the code below. We are using ASPMail 4 to generate the e-mail. This code worked on Windows 2000, but now that we have upgraded to Windows 2003, this same code now gives the error, "503 must have sender and recipient first". Since this code worked previously and it has not been changed, does anyone know of a problems with ASPMail and Windows 2003? This is a production system, so any ideas would be helpful. Thanks!
__________________________
Set Mailer = Server.CreateObject("SMTPs
rem change this RemoteHost to a valid SMTP address before testing
Mailer.RemoteHost = "xxx.xxx.xxx.xxx"
Mailer.FromName = "Joe Smith"
Mailer.FromAddress = "Joe.Smith@mycompany.com"
Mailer.AddRecipient "Sally Sue", "sally.sue@mycompany.com"
Mailer.Subject = "Test of ASPMail for the Internet Application!"
Mailer.BodyText = "Test message."
if not Mailer.SendMail then
Response.Write " Mailing Failed... Error is: <br>"
Response.Write Mailer.Response & "<br>"
else
Response.Write " sent successfully...<p>"
end if
Response.Write "This component expires: " & Mailer.Expires & "; N/A means it does not expire.<p>"
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I agree, it seems to be a relay issue.
According to Hosting solutions :
"554 or 503 errors" :
'500 series errors are errors that the SMTP server generates. This error means that the message recipients given are either not given OR they are not valid recipients for this SMTP server. This is often associated with the "no relay" issued covered above. The SMTP server rejects the given recipients and then issues this error. This typically happens when you have IgnoreInvalidRecipients set to true. You can verify that the SMTP server is ignoring your recipients due to the "no relay" issue or for any other reason by using the SMTPLog property to generate a log and then look at the rejection errors in the log file.'
Did you try to send a message with a telnet on the smtp server port 25, using smtp commands ?
I have tried using IMail and Exchange for routing the mail; both are available to me. In IMail, I have created the log and done some testing. It appears that it will work if I send mail to an account that is housed on the SMTP server (IMail), but if I try to send the e-mail to someone that does not have an account on that server, then I receive an invalid user error. The SMTP servers, both IMail and Exchange, were not changed, only the web servers were upgraded.
Also, I do not have administrative rights to the Exchange server to review any logs so at this point I will be concentrating on using IMail for my troubleshooting.
I've noticed that the web servers have the SMTP service running on them as well. Are there any settings on the web servers that I should be checking? I was looking for an SMTP configuration utility on the web server and did not see anything that was remotely close. Could I be looking in the wrong place or do you have to have a mail utility such as IMail or Exchange running for SMTP configuration?
I have resolved my issue. About 2.5 - 3 hours ago I discovered that the web servers were not listed in the "relay addresses" listing. So I added them. After making the change, I tested I still had my problem, so I had continued looking for the problem. I had apparently missed the small note at the bottom of the window that said, "changes will not take affect until the service is restarted." After bouncing the service, the e-mail went through fine.
Thank you for your help. I feel quite silly after discovering my error. It is one I will not forget quickly.
Business Accounts
Answer for Membership
by: hongjunPosted on 2005-04-27 at 05:37:13ID: 13875383
According to ASPMail documentation. It could be due to your SMTP configuration. om/comp/As pmail4.htm
http://www.serverobjects.c