Click to See Complete Forum and Search --> : CDO and the attachments...
artsapimp
Mar 21st, 2001, 03:05 PM
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.
harsoni
Mar 21st, 2001, 03:47 PM
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
artsapimp
Mar 21st, 2001, 04:09 PM
Thank you. I tested it a few ways and mail.MailFormat = 0 was the key. Thanks again.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.