Home | Advertising Info6 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Monday, May 20, 2024  

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Advanced
 PowerASP Code Help Area : Classic ASP - Advanced
Subject Topic: CDO Mail wont send. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dlp1s
Newbie
Newbie


Joined: July/24/2005
Location: United States
Online Status: Offline
Posts: 1
Posted: 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 posts by dlp1s
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

   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.

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com