Here is an example:
myOlApp = CreateObject("Outlook.Application")
myItem = myOlApp.CreateItemFromTemplate("C:\Task.oft")
WITH myItem
.DueDate = "9/20/2002"
.Body ="Template Test"
.SubJect = "Hello Template test"
.Status = 1
.Assign
.Recipients.Add("me@somewhere.com")
.Send
endwith
>Hi all,
>
>Any ideas on how to access Outlooks Email Template by way of automation / scripting please?
>
>I have code that sends out emails (on behalf of the user) from outlook by way of automation. I would to access the user's custom email template(s) for some of the content.
>
>Any help will be much appreciated.
>
>Thank you