Questions related to the structure and usage of the Outlook Template (OFT) file format.
Questions tagged [oft]
31 questions
6
votes
2 answers
Is there a difference between the Outlook .MSG and .OFT file formats?
This question is somewhat of a long shot, but I've spent hours on it to no avail. I have some code that generates an email file on a webserver, and allows the user to download that email and open it in Outlook. From here, they can make various…

Mike Christensen
- 88,082
- 50
- 208
- 326
5
votes
1 answer
Creating Outlook template (.oft) file in an ASP.Net MVC application
I've a requirement for downloading an html template as an OFT file in an ASP.Net MVC4 web application (using C#). I've already tried Microsoft.Office.Interop.Outlook, which works perfectly in my local machine but failed to work in the server. It…

Arjun
- 141
- 2
- 7
3
votes
2 answers
Hyper Link That Opens .OFT in Outlook
I have some Outlook .oft template files uploaded to a web server.
Is it possible to create a link to the individual files that will result in them opening in outlook?
I have thus far only managed to create straight up HTML links that simply…

Da Sped
- 31
- 1
- 3
2
votes
0 answers
python email sending using template oft
Hi there I have been looking a bit more advanced coding for editing and sending a email:
SERVER = "your.mail.server"
FROM = "yourEmail@yourAddress.com"
TO = ["listOfEmails"] # must be a list
SUBJECT = "Subject"
TEXT = "Your Text"
# Prepare actual…

MarKris
- 21
- 1
2
votes
1 answer
Runtime error while opening an oft template
I have a mailing tool to create Outlook templates. The templates are stored as OLEObjects in one of the worksheets.
To use the templates I am creating a copy of them in the Temp folder. Afterwards the tool references it directly and opens with…

szczepan077
- 21
- 3
2
votes
0 answers
Outlook 2013 Munging Image Markup when saving OFT email templates
Apart from all the hacks, tricks, etc. out there to produce OFT emails, is there a way, via markup, to prohibit Outlook from injecting it's nifty placeholder markup (I'm assuming to facilitate the floating format button when in edit mode?)
My team…

Skowronek
- 308
- 3
- 10
1
vote
1 answer
How to Reply to All using a template?
I'm trying to do a "reply all" command using a specific template.
This is what I have so far:
Sub my_test()
Dim mail 'object/mail item iterator
Dim replyall 'object which will represent the reply email
For Each mail In…

H.N.
- 1,207
- 2
- 12
- 28
1
vote
1 answer
Sharepoint: Upload outlook template to Sharepoint - and have it open in Outlook when clicked as opposed to a preview
We have SharePoint as part of Microsoft 365. While I can upload Outlook templates and messages to the document library (obviously), there seems to be no way to have them actually open in Outlook. The template files (.oft) won't open at all, and…

BethD
- 35
- 7
1
vote
0 answers
Send mails, using oft template, with addresses in Excel
I used the below coding earlier for some other type of mail but this time is not sending the mails.
Also not picking the email IDs and data given in Excel.
I have to send mails to different people with CC to their respective managers. I updated…

Santhi
- 11
- 3
1
vote
1 answer
How to send email using MS Outlook Template (.oft), combined with variable values inserted into body of email (through Excel or otherwise)
Example: An interview confirmation email in Outlook.
Dear [A],
Your interview with [B] is confirmed for [C]. The address is [D].
Thank you,
John Doe
A - First Name
B - Company Name
C - Date & Time
D - Physical Address
I've seen people use Excel…

B.McInnis
- 11
- 1
- 2
1
vote
1 answer
VBA - Replace text in OFT Template with condition
I am starting with VBA. This time I am creating a simple automation for business emails, that could be send from excel, while using OFT Template. The code below works perfectly fine for replacing the text, but it can't be used to create a proper…

Mari
- 37
- 5
1
vote
1 answer
Extracting a word from Outlook Email Body while replying email with predefined Template
I have a working code which is extracting information from subject of initial email.
Sub InitialNotif()
Dim origEmail As MailItem
Dim replyEmail As MailItem
Dim INC1 As String 'For Serial Number
Dim INo As Integer 'For Serial Number
Dim LOC1…

RKP
- 45
- 2
- 9
0
votes
1 answer
How can I insert an OFT template on an Outlook message using RDComClient?
I wanto to embed or insert a premade oft template on message but I dont knon how can I do it.
Im able to embed images, but I need to insert complex html compatible with outlook
I have this parte done I can embed image but no html
Open…

Cesar Amezcua
- 1
- 1
0
votes
2 answers
Set an email has replied - vba
I have macro to forward an email with the original attachment to everyone which is involved in the original email chain.
Sub my_test()
Dim objItem As Object
Dim mail As MailItem
Dim forwardMail As MailItem
Dim templateItem As MailItem
For…

H.N.
- 1,207
- 2
- 12
- 28
0
votes
1 answer
Reply all with attachment
I have this code to a vba outlook macro to reply all.
Sub my_test()
Dim objItem As Object
Dim mail As MailItem
Dim replyall As MailItem
Dim templateItem As MailItem
For Each objItem In ActiveExplorer.Selection
If objItem.Class = olMail…

H.N.
- 1,207
- 2
- 12
- 28