By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

SMTP Add Attachments - Cannot access CDO Message Object

P: n/a
I am having trouble with mail attachments when executing
mail.send(message).

The mail attachment is fine if it is an RTF, but as soon as i use JPEG
or Doc then i get the error of Cannot access CDO Message Object.

I have tried adding Header
(message.headers.add("Content-Transfer-Encoding", "base64") and also
when attaching the file i use message.attachments.add(New
MailAttachment(path, mailencoding.base64), as per looking through
similar problems on the web.

any help appreciated.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* ga**********@lineone-dot-net.no-spam.invalid (gamorgan) scripsit:
I am having trouble with mail attachments when executing
mail.send(message).

The mail attachment is fine if it is an RTF, but as soon as i use JPEG
or Doc then i get the error of Cannot access CDO Message Object.


If you don't get an answer here, post the question to a more general
group, for example news:microsoft.public.dotnet.framework.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.