Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send an Outlook e-mail from Access using a template (oft)

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Thu May 05, 2011 10:37 am    Post subject: Send an Outlook e-mail from Access using a template (oft) Reply with quote

How can I send an Outlook e-mail from Access using a template (oft) ?
_________________
--------------------------
Thanks for everything.
Back to top
View user's profile Send private message
neonasafluni
New Member


Joined: 03 Feb 2007
Posts: 5
Location: West Bend, WI

PostPosted: Thu May 05, 2011 10:39 am    Post subject: Reply with quote

Write Access VBA code invoking the Application.CreateItemFromTemplate method from the Outlook object model:
Code:

Set ol = CreateObject("Outlook.Application")
Set msg = ol.CreateItemFromTemplate("C:\Data\MyTemplate.oft" )
msg.Display
' or other code to work with msg


That should get you started. There is other code on this forum (I think) to process the e-mail further.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group