Forum Moderators: open

Message Too Old, No Replies

CDONTS with multiple attachments

         

fscanf

3:20 am on Oct 30, 2003 (gmt 0)

10+ Year Member



Hi all,

I have been scouring the net for a while here looking for an answer to this problem, but I haven't found an answer yet.

I want to send an email with attachments via CDONTS. I can attach the first file and send it in the email with no problem. When I try to attach the second file by calling myMail.attach again, i get garbage (like the ascii code of the image) embedded in the email itself.

Is there anyway to actully have two or more attachments with the CDONTS email component, or will I have to resort to downloading a third-party component to complete this task.

Thanks

-Chris

ziggystardust

9:35 am on Oct 30, 2003 (gmt 0)

10+ Year Member



Hmm, you should be able to attach multiple files using the AttachFile method in CDONTS.

check out [msdn.microsoft.com...]

have you tried changing the encoding?

Good luck
//ZS

fscanf

9:01 pm on Oct 30, 2003 (gmt 0)

10+ Year Member



Thanks, your right, it was the encoding format of the email itself.

I set myMail.MailFormat = 0 and it worked. Man, how do you guys know all this stuff...