Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exch server 2003 isn't sending email through asp

Status
Not open for further replies.

meldrape

Programmer
May 12, 2001
516
US
Hi there, not sure if I'm posting this to the right place, so please bear with me. Just started running exchange server 2003. I have a help desk applicaiton in asp, using the smtp server to email us when someone posts a helpdesk ticket. I do not get an error when sending email but the email doesn't send. It was fine with our other mail server not it's not. It's hard without an error but if somebody submits a ticket, we are not receiving the email. Any thought would be greatly appreciated. I'm using the IP address instead of "localhost" or "mail.whatever.com" and it is the correct IP address. Thanks.
Here's the script I'm using:
Code:
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Testing email CC"
myMail.From="problem@problem.com"
myMail.To="fixer@address.com"
mymail.CC="copy@address.com"
myMail.HTMLBody="please reply if you get this"
myMail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")=2[/URL]
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")="My[/URL] IP Address"
'Server port
myMail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25[/URL] 
myMail.Configuration.Fields.Update
myMail.send
Response.Write "Ticket Submitted Successfully."
 
Usually the IIS comes with a CDONTS protocol for sending STMP email.

Check out faq333-2962 for a general faq on how to send email via ASP. You may just have to define a CDONTS object instead of a CDO object.

Earnie Eng
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top