Home | Advertising Info15 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Sunday, April 28, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Advanced
 PowerASP Code Help Area : Classic ASP - Advanced
Subject Info: CDO Mail wont send. A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
dlp1s
Newbie
Newbie


Joined: July/24/2005
Location: United States
Online Status: Offline
Info: 1
Added: July/24/2005 at 9:11am | IP Logged Quote dlp1s

Hello-- I get the following error when I add the cdo mail code to my page. 

I have tried changing "localhost" to mail.myserver.com and that does not work. This code DOES work on my local IIS when I tested it.  Problem came in when I uplodaed it to server and tried there.  Can anyone help.

 

 

ERROR MESSAGE BELOW:
CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/hostedTournaments/addMyInfo.asp, line 139
____________________________________________________________ ______
CODE THAT GENERATES THE ERROR

Set objMail = Server.CreateObject("CDO.Message")

objMail.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMail.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"

objMail.From = Request.Form("email")
objMail.To = "dpruitt@southeastsports.org"
objMail.CC = Request.Form("email")
objMail.Subject = "Invitational Connection"
'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)


'body of email
objMail.HTMLBody = "<font size =3 face = Verdana>" & "<strong>" & Request.Form("coachName") & " is wanting more info on Invitationals" & "</strong>" & "</font>" & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "<font size =2 face = Verdana>" & "Update My Info: " & Request.Form("renew") & "<br>" & "<br>" & "Coach/Contact Name: " & Request.Form("coachName") & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "<font size =2 face = Verdana>" & "Team Name : " & Request.Form("teamName") & "<br>" & "<br>" & "Location: " & Request.Form("city") & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "<font size =2 face = Verdana>" & "Team Age: " & Request.Form("teamAge") & "<br>" & "<br>" & "Team Gender: " & Request.Form("teamGender") & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "<font size =2 face = Verdana>" & "Address: " & Request.Form("address") & "<br>" & "<br>" & "Phone: " & Request.Form("phone") & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "<font size =2 face = Verdana>" & "Email: " & Request.Form("email") & "<br>" & "<br>"
objMail.HTMLBody = objMail.HTMLBody & "Sent at " & Now() & "</font>"

objMail.Send()

Set objMail = Nothing

Back to Top View dlp1s's Profile Search for other info by dlp1s
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com