Posted January 30, 201113 yr 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!
January 30, 201113 yr FPCH Admin You need to set your app pool to run in 32 bit mode. That is a common problem and is well documented on this forum. Off Topic Forum - Unlike the Rest
January 30, 201113 yr Author 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.
January 31, 201113 yr FPCH Admin This is the thread I believe: http://freepchelp.forum/topic/37-iis-7-cant-start-classic-com-objects/ Off Topic Forum - Unlike the Rest
February 3, 201113 yr Author Unfortunately, it appears my application pool is already set true to allow for 32 bit mode. Any other suggestions? =(
February 3, 201113 yr FPCH Admin 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? Off Topic Forum - Unlike the Rest