Every time I send mail using an online form I have created (using CDO) it sends an attachment with jumbled informaiton in it. Is there a way to stop the attachment from being sent? Thanks for any help.
Printable View
Every time I send mail using an online form I have created (using CDO) it sends an attachment with jumbled informaiton in it. Is there a way to stop the attachment from being sent? Thanks for any help.
Set mail = Server.CreateObject("CDONTS.NewMail")
if not (mail is nothing ) then
mail.From = strName
mail.bcc = emailId
mail.Cc = senderID
mail.To = ''mail.To"
mail.Subject ="ahdjsa"
mail.Body = sBody
mail.BodyFormat = 0
mail.MailFormat = 0
mail.Send
Set mail = Nothing
try using like this
Sonia
Thank you. I tested it a few ways and mail.MailFormat = 0 was the key. Thanks again.