newbie Posted January 30, 2011 Posted January 30, 2011 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! Quote
Forum² Admin F2 Staff Posted January 30, 2011 Forum² Admin Posted January 30, 2011 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. Quote
newbie Posted January 30, 2011 Author Posted January 30, 2011 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. Quote
Forum² Admin F2 Staff Posted January 31, 2011 Forum² Admin Posted January 31, 2011 This is the thread I believe: http://serverforum.org/topic/37-iis-7-cant-start-classic-com-objects/ Quote
newbie Posted February 3, 2011 Author Posted February 3, 2011 Unfortunately, it appears my application pool is already set true to allow for 32 bit mode. Any other suggestions? =( Quote
Forum² Admin F2 Staff Posted February 3, 2011 Forum² Admin Posted February 3, 2011 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.