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
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