Smtp Setup With Asp Creating 500 Internal Server Errors

newbie

New member
Joined
Jun 17, 2004
Messages
4
Location
Maryland
Hello all. I have recently installed an SMTP server on my machine. IP address is [All Unassigned] TCP port 2525 (it won't start on port 25). Relay restrictions are to 127.0.0.1, authentication is Anonymous access only.

ASP code is as follows:
Code:
	Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "admin@mysite.com"
objCDOSYSMail.To = ADDRESS
objCDOSYSMail.Subject = subject
objCDOSYSMail.HTMLBody = html_encode(SUBJECT,MSG)
objCDOSYSMail.Send
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
It doesn't matter whether the smtpserverport is set to 25 or 2525, or whether the smtpsever is set to local or the actual domain name or mail.mysite.com. Everything produces 500 Internal Server Error.

I've searched around the web for quite some time now, and would greatly appreciate any help an experienced member might have. Thank you!
 
Thanks for the quick response. I searched this site (and google) before posting, as I didn't quite know where to start. I'm glad to see you know what's going on, but I still can't seem to find the documentation on this site. My narrowed search is being thwarted by search term character limits >4, which makes "smtp" and "32 bit" hard to find. Sorry to seem to helpless, but could you please point me in the right direction one last time with a link to the documentation on this site? Thank you thank you thank you.
 
Unfortunately, it appears my application pool is already set true to allow for 32 bit mode. Any other suggestions? =(
 
What are the logs saying? What error is produced? A 500 error is generic so you need to look in the logs to see what the exact error was.

Without that kind of information we more than likely would never be able to figure out the problem.

Have you considered using asp.net and System.Web.Mail?
 
Back
Top