Adding a toolbutton to start a new message using a specific template

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone give me pointers on how to add a toolbutton
to Outlook to start a mail message using a specific
template?
Thanks.
 
To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection. If it's a message form, you can use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for other ideas.
 
Back
Top