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:
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!
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
I've searched around the web for quite some time now, and would greatly appreciate any help an experienced member might have. Thank you!