Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Email object (http://www.outlookbanter.com/outlook-vba/12292-email-object.html)

JMG April 21st 06 12:37 PM

Email object
 
Hi there.

I send automatic emails from word using otlook.object importing
an external txt file and setting it as the body of the message.

Is there a chance to copy a message stored in my folder ("Sending
emails")
and to send it instead of reading the txt file?

Thanks in advance
Marco.


Ken Slovak - [MVP - Outlook] April 21st 06 03:27 PM

Email object
 
Create your sample message and save it as an OFT file to the file system.
Then use the Application.CreateItemFromTemplate method to open that template
using your code. Of course Application in this context is an
Outlook.Application object.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"JMG" wrote in message
ups.com...
Hi there.

I send automatic emails from word using otlook.object importing
an external txt file and setting it as the body of the message.

Is there a chance to copy a message stored in my folder ("Sending
emails")
and to send it instead of reading the txt file?

Thanks in advance
Marco.




All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com