Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CDO email with html code

Posted on 2004-04-28
2
Medium Priority
?
546 Views
Last Modified: 2012-08-14
trying to send this email  with html code in the body but i get this error
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/2004fallregistrationnew.asp, line 148

objCDOSYSMail.HTMLBody =" Thank you very much for registering for the FC PRIDE 2004 fall try-outs. Please make sure that your player brings a ball, shin guards, and water for all try-out sessions. All sessions will take place behind the Lawrence Soccer Complex- South Concession Stand.<BR> Please arrive 30 minutes prior to your try-outs to complete your registration. <BR> Please check the FC Pride website <a href="http://www.fcpride.org/">www.fcpride.org</a> in the event of poor weather. <BR> Brent Paulson <br> <a href="mailto:bep@fcpride.org">bep@fcpride.org</a>"
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
this is my code ... what am i doing wrong??

'Dimension variables
Dim objCDOSYSCon
   
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
'Set and update fields properties
'Out going SMTP server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.111.2"
'SMTP port
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
'CDO Port
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Timeout
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
'Who the e-mail is from
objCDOSYSMail.From = "bep@fcpride.org"
'Who the e-mail is sent to
objCDOSYSMail.To = request.Form("email")
'The subject of the e-mail
objCDOSYSMail.Subject = "2004 Spring Player Application Confirmation Letter"


'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
objCDOSYSMail.HTMLBody =" Thank you very much for registering for the FC PRIDE 2004 fall try-outs. Please make sure that your player brings a ball, shin guards, and water for all try-out sessions. All sessions will take place behind the Lawrence Soccer Complex- South Concession Stand.<BR> Please arrive 30 minutes prior to your try-outs to complete your registration. <BR> Please check the FC Pride website <a href="http://www.fcpride.org/">www.fcpride.org</a> in the event of poor weather. <BR> Brent Paulson <br> <a href="mailto:bep@fcpride.org">bep@fcpride.org</a>"
objCDOSYSMail.Send
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
0
Comment
Question by:gianitoo
2 Comments
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 10944068
you need to double up the quotes:

objCDOSYSMail.HTMLBody =" Thank you very much for registering for the FC PRIDE 2004 fall try-outs. Please make sure that your player brings a ball, shin guards, and water for all try-out sessions. All sessions will take place behind the Lawrence Soccer Complex- South Concession Stand.<BR> Please arrive 30 minutes prior to your try-outs to complete your registration. <BR> Please check the FC Pride website <a href=""http://www.fcpride.org/"">www.fcpride.org</a> in the event of poor weather. <BR> Brent Paulson <br> <a href=""mailto:bep@fcpride.org"">bep@fcpride.org</a>"

B.D.
0
 
LVL 1

Author Comment

by:gianitoo
ID: 10944177
Bingo
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question