CDO message

I

iccsi

I use CDO.message to send out email with attachment using SMTP.
The attachement is from the report.
It seems that I have to run the report and save a temp file and send
it out.

docmd.SendObject can just send out the email with attachement without
saving it.

I just wonder are there any solution that I do not need save the
attachment files using CDO.Message, or I any way to clean files
created by docmd.OuputTo?

Your information is great appreciated,
 
S

Stuart McCall

iccsi said:
I use CDO.message to send out email with attachment using SMTP.
The attachement is from the report.
It seems that I have to run the report and save a temp file and send
it out.

docmd.SendObject can just send out the email with attachement without
saving it.

I just wonder are there any solution that I do not need save the
attachment files using CDO.Message, or I any way to clean files
created by docmd.OuputTo?

Your information is great appreciated,

To answer that 2nd part of your question, you can use the Kill command to
delete the files after the send:

Kill <path to attached file>
Kill <path to another file>

Simple as that.
 
I

iccsi

To answer that 2nd part of your question, you can use the Kill command to
delete the files after the send:

Kill <path to attached file>
Kill <path to another file>

Simple as that.

Thanks millions for helping,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sending Access mail using smtp 1
pdf send 8
sendobject doesn't send 2
docmd.sendobject 1
Sending E-mail 3
Excel CDO 5
Sending attachment 2
Send a e-mail with access 1

Top