CDO

S

SS

Have at long last managed to get this to work to send an email and post to a
database



<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="email@aol"
myMail.To="email2@aol"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

but I also want tthe form fields to be sent in the email and have tried this
as it worked in CDONTS but not sure now what I should be putting in this -
any ideas would be great?



strBody = StrBody & "Name: " & FP_SavedFields("Name") & VbCrlf




objCDOMail.Body = strBody
objCDOMail.BodyFormat = 1
objCDOMail.MailFormat = 1
objCDOMail.Send
Set objCDOMail = Nothing



Thanks

Shona
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top