Jump to content
Forum²

Recommended Posts

Posted

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:

 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!

Posted
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.
  • Forum² Admin
Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...