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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using CDO for ASP mail

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have embedded the following lines of code in my ASP page. Once I submit the page an email is supposed to arrive in my mail tray. It worked for the longest time, but now I have received mail in 2 days from this code. How do I debug it? Is there any logs on the server I can check? Is there a setting on the server I can set to display more information? I get no error messages.

CODE
<%
set objCDOMAIL = server.CreateObject(&quot;CDONTS.NEWMail&quot;)
strBody = &quot;Image Serial Number(s) requested: &quot; & Request.Form(&quot;hdnImgSerialNos&quot;)& &quot; &quot; & chr(13)
strBody = strBody & &quot;Date Required: &quot; & request.Form(&quot;txtDateRequestedBy&quot;) & &quot; &quot; & chr(13)
strBody = strBody & &quot;Comments: &quot; & Request.Form(&quot;txtComments&quot;) & &quot; &quot; & chr(13)
strBody = strBody & chr(13)
strbody = strBody & &quot;Contact Information&quot; & chr(13)
strBody = strBody & chr(13)
strBody = strBody & &quot;User ID: &quot; & gUserID & &quot; Order Date: &quot; & gCurrentDate & &quot; &quot; & chr(13)
strBody = strBody & &quot;First Name: &quot; & gFirstName & &quot; Initials: &quot; & gInitials & &quot; &quot; & chr(13)
strBody = strBody & &quot;Last Name: &quot; & gLastName & &quot; &quot; & chr(13)
strBody = strBody & &quot;Group: &quot; & gGroupName & &quot; &quot; & chr(13)
strBody = strBody & &quot;Phone: &quot; & Request.Form(&quot;txtPhone&quot;) & &quot; Fax: &quot; & Request.Form(&quot;txtFax&quot;) & &quot; &quot; & chr(13)
strBody = strBody & &quot;Email: &quot; & Request.Form(&quot;txtEmail&quot;) & &quot; &quot; & chr(13)
strBody = strBody & chr(13)
strBody = strBody & &quot;Mailing Address&quot; & chr(13)
strBody = strBody & chr(13)
strBody = strBody & &quot;Street: &quot; & Request.Form(&quot;txtStreet&quot;) & &quot; &quot; & chr(13)
strBody = strBody & &quot;City: &quot; & Request.Form(&quot;txtCity&quot;) & &quot; Province/State:&quot; & Request.Form(&quot;txtProvinceState&quot;) & &quot; &quot; & chr(13)
strBody = strBody & &quot;Country: &quot; & Request.Form(&quot;txtCountry&quot;) & &quot; Postal Code: &quot; & Request.Form(&quot;txtPostalCode&quot;) & &quot; &quot; & chr(13)
strBody = strBody & &quot;********************** END OF EMAIL **************************&quot; & chr(13)

objCDOMail.From = &quot;admin <test@test.com>&quot;
objCDOMail.To = &quot;myemailaddress@here.com&quot;
objCDOMail.Subject = &quot;Image Request&quot;
objCDOMail.Body = strBody

objCDOMail.Send

set objCDOMail = Nothing
%>
 
I think the problem is on the Web Server Configuration ________
George, M
 
I checked the server. Stopped and restarted the SMTP server. No email yet. BUt the email is sitting in the queue folder. WHy?
 
I have the same problem, i try to configure FrontPage Server Extension but nothing, whend i install the W2000 again it worked from the beginning, even right now... and i'm on an local network, i acess the internet from our server and still worked... ________
George, M
 
I had a similar problem recently and it had to do with a conflict with Microsoft Exchange server. I deactivated the SMTP client using the MMC and it is working now. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top