Dear All,
I have been having a problem sending messages generated in ASP (using CDOSYS). I am trying to send the contents of the forms on our website to our email address and send a confirmation email to the submitter. The same script is also used to send subscribe/unsubscribe messages to our newsletter.
I am running IIS5 on Windows 2000 Advanced Server. All critical updates/service packs are up to date.
I believe my problem stems from the IIS SMTP server not being configured correctly. I have been so far unable to find any decent documentation on how to correctly configure SMTP server for this purpose.
I have been trying two different methods to send messages:
The first involves attempting to send the messages through the localhost (this is preferable). In this situaution the script runs without any problems (ie. it doesn’t return any errors), but all messages wind up in the bad message queue of IIS SMTP server. I am unable to find a reason for this. If I open up the messages in notepad it says very little other than they could not be delivered. I think this must be down to the configuration of IIS or perhaps the port to send messages from the server is blocked on the firewall?? Please can you help me with this.
The second method involves sending the messages via our mail server - this was working last week, albeit sporadically – some messages were sending and some were winding up in the bad message queue. It now doesn’t work at all.
CODE SAMPLE:
-------------------------------------------------------------------------------------------------------------------------------------------------------
Set objCDOSYSMail = Server.CreateObject("CDO.Message"
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration"
'Either - use method 1 and use IIS SMTP server >>
objCDOSYSCon.Fields(" = "localhost"
'Or - use method 2 and relay to smtp.itbn.com.cn >>
'objCDOSYSCon.Fields(" = "smtp.itbn.com.cn"
objCDOSYSCon.Fields(" = 25
objCDOSYSCon.Fields(" = 2
objCDOSYSCon.Fields(" = 60
objCDOSYSCon.Fields.Update
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "company_email_address@itbn.com.cn"
objCDOSYSMail.To = "newsletter_subscribe_address@it-r.net"
objCDOSYSMail.Subject = "ITR News SUBSCRIBE email from 'ITBN Home (Eng)'"
objCDOSYSMail.HTMLBody = "SUBSCRIBE newsletter " & u_email & " {" & u_name & "}"
objCDOSYSMail.Send
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
-------------------------------------------------------------------------------------------------------------------------------------------------------
Any help to get this thing working would be greatly appreciated.
Thanks in advance
Slinka
I have been having a problem sending messages generated in ASP (using CDOSYS). I am trying to send the contents of the forms on our website to our email address and send a confirmation email to the submitter. The same script is also used to send subscribe/unsubscribe messages to our newsletter.
I am running IIS5 on Windows 2000 Advanced Server. All critical updates/service packs are up to date.
I believe my problem stems from the IIS SMTP server not being configured correctly. I have been so far unable to find any decent documentation on how to correctly configure SMTP server for this purpose.
I have been trying two different methods to send messages:
The first involves attempting to send the messages through the localhost (this is preferable). In this situaution the script runs without any problems (ie. it doesn’t return any errors), but all messages wind up in the bad message queue of IIS SMTP server. I am unable to find a reason for this. If I open up the messages in notepad it says very little other than they could not be delivered. I think this must be down to the configuration of IIS or perhaps the port to send messages from the server is blocked on the firewall?? Please can you help me with this.
The second method involves sending the messages via our mail server - this was working last week, albeit sporadically – some messages were sending and some were winding up in the bad message queue. It now doesn’t work at all.
CODE SAMPLE:
-------------------------------------------------------------------------------------------------------------------------------------------------------
Set objCDOSYSMail = Server.CreateObject("CDO.Message"
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration"
'Either - use method 1 and use IIS SMTP server >>
objCDOSYSCon.Fields(" = "localhost"
'Or - use method 2 and relay to smtp.itbn.com.cn >>
'objCDOSYSCon.Fields(" = "smtp.itbn.com.cn"
objCDOSYSCon.Fields(" = 25
objCDOSYSCon.Fields(" = 2
objCDOSYSCon.Fields(" = 60
objCDOSYSCon.Fields.Update
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "company_email_address@itbn.com.cn"
objCDOSYSMail.To = "newsletter_subscribe_address@it-r.net"
objCDOSYSMail.Subject = "ITR News SUBSCRIBE email from 'ITBN Home (Eng)'"
objCDOSYSMail.HTMLBody = "SUBSCRIBE newsletter " & u_email & " {" & u_name & "}"
objCDOSYSMail.Send
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
-------------------------------------------------------------------------------------------------------------------------------------------------------
Any help to get this thing working would be greatly appreciated.
Thanks in advance
Slinka