How to get subject from template.oft-File?

  • Thread starter Thread starter Helmut Weber
  • Start date Start date
H

Helmut Weber

Hi all,
i'm generating mass-emails (no spam) programmatically
by using templates (*.oft). This works great, yet it's
been impossible so far, to get the text of subject
from template to appear as the actual mail subject.
Any ideas?
Here is my part of my code (lotus-script), but
not that different from VBA:.
Set oOutlookApp = GetObject(, "Outlook.Application")
Set OItem = oOutlookApp.CreateItemFromTemplate(aTemplate)
' no problem here
With oItem
..To = ' no problem here
..subject = "Testmailing" !!!!
'I want the subject from the template
..body = ' no problem here
..send
End With
 
Dumb question, but did you actually set a value for the Subject before you
saved the .oft file? If the template has a subject, that's what will appear
as the mail message subject.
 
If the template was saved with a subject it should have it when you
create the new item from the template.
 
Thank you,
there went something wrong with saving the template.
Greetings from bavaria
Helmut Weber
 

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

Back
Top