• Outlook User
  • Exchange Admin
  • Office 365
  • Outlook Developer
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
    • Common Problems
    • Outlook BCM
    • Utilities & Addins

How to Insert a Text or HTML File into a Message

Slipstick Systems

› Tutorials › How to Insert a Text or HTML File into a Message

Last reviewed on February 14, 2019     6 Comments

You can insert text or HTML files in messages in Outlook (any version.) Use this to insert "boilerplate text" or HTML created in an HTML editor.

In Outlook 2016, you need to customize the Quick Access Toolbar or Ribbon to add the Insert File command to the ribbon - the default Attach File command on the Insert menu won't offer the opportunity to insert a file as text. The old Attach File command, which has the Insert as Text option is available in the customize dialog.
attach file command
Tip: Make sure you choose the second Attach File command, the one that does not expand.

When you click this Attach file dialog, you'll have the older options to insert the file as text.

 

To Insert text or HTML files into a message:

  1. Click the Attach File icon in Outlook 2007, 2010, and 2013
  2. Select the file and expand the Insert button.
  3. Select Insert as text. If the file contains HTML tags, it will render in the message as HTML.

More Information

You can use VBA to insert HTML stationery or text files as the message body. See "Create a New Message using an HTML File or Stationery" for the code.

How to Insert a Text or HTML File into a Message was last modified: February 14th, 2019 by Diane Poremsky
  • Twitter
  • Facebook
  • LinkedIn
  • Reddit
  • Print

Related Posts:

  • Create a New Message using an HTML File or Stationery
  • How to Create HTML Stationery for Outlook
  • Where is the Out of Office command?
  • Outlook's Modern Attachments Feature

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
6 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Adam Young (@guest_209555)
December 4, 2017 5:51 pm
#209555

Hi Diane. Is there a way to replicate this through VBA? I would like to attach a webpage to an email as text, but am having a hard time figuring out this final step. The (very simple) code I've written, which is included below, will attach the webpage, but as a file:

Public Sub WeeklyHayReport()
Dim FarmAccount As Outlook.Account
Dim ObjMsg As MailItem

For Each FarmAccount In Application.Session.Accounts
If FarmAccount = "Farm" Then
Set ObjMsg = Application.CreateItem(olMailItem)
With ObjMsg
.SendUsingAccount = FarmAccount
.To = "Email Address"
.CC = "Other Email Address"
.Subject = "Idaho Weekly Hay Report"
.Attachments.Add ("https://www.ams.usda.gov/mnreports/ml_gr312.txt")
.Display
End With
End If
Next
End Sub

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Adam Young
December 4, 2017 11:55 pm
#209561

>> webpage to an email as text,
insert it as an attachment or embed it as the message body? (Yes to either.)

See https://www.slipstick.com/outlook/email/create-new-message-using-html-file-stationery/#insert for inserting files as the body.

0
0
Reply
Adam Ehrenworth (@guest_174237)
February 25, 2013 10:42 am
#174237

When I do this in Outlook 2010 the html file appears as an attachment. I have validated that I am in HTML mode. Is this an issue with the source HTML file itself?

2
-1
Reply
Diane Poremsky (@guest_174238)
Reply to  Adam Ehrenworth
February 25, 2013 11:19 am
#174238

If you choose Insert > Insert as Text, it should insert it into the message body as an HTML message.

0
0
Reply
Terry Clancy ClanceZ (@guest_203535)
Reply to  Diane Poremsky
December 23, 2016 2:51 pm
#203535

Office 365 does not appear to have the dropdown to expand the Insert Button ? Is there a way to do this in Office 365 ?

8
0
Reply
jeffk (@guest_218677)
Reply to  Terry Clancy ClanceZ
August 26, 2021 11:21 am
#218677

The attach file quick menu needs to be the one without the ellipsis. Also your html file needs the HTML BODY codes for Outlook to realize what you're trying to accomplish.

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 28 Issue 21

Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Subscribe to Exchange Messaging Outlook






Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • WeekMonthAll
  • How to Remove the Primary Account from Outlook
  • Adjusting Outlook's Zoom Setting in Email
  • Move an Outlook Personal Folders .pst File
  • Uninstall Updates in Office 'Click to Run'
  • Save Sent Items in Shared Mailbox Sent Items folder
  • Create rules that apply to an entire domain
  • View Shared Calendar Category Colors
  • How to Create a Pick-a-Meeting Request
  • Outlook's Left Navigation Bar
  • Use PowerShell to get a list of Distribution Group members
  • Create a rule to delete spam with no sender address
  • Open Outlook Folders using PowerShell or VBScript
  • Cannot add Recipients in To, CC, BCC fields on MacOS
  • Change Appointment Reminder Sounds
  • Messages appear duplicated in message list
  • Reset the New Outlook Profile
  • Delete Old Calendar Events using VBA
  • Use PowerShell or VBA to get Outlook folder creation date
  • Outlook's Left Navigation Bar
  • Contact's Display Bug
Ajax spinner

Newest Code Samples

Delete Old Calendar Events using VBA

Use PowerShell or VBA to get Outlook folder creation date

Rename Outlook Attachments

Format Images in Outlook Email

Set Outlook Online or Offline using VBScript or PowerShell

List snoozed reminders and snooze-times

Search your Contacts using PowerShell

Filter mail when you are not the only recipient

Add Contact Information to a Task

Process Mail that was Auto Forwarded by a Rule

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in Outlook for Windows.

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




Windows 10 Issues

  • iCloud, Outlook 2016, and Windows 10
  • Outlook Links Won’t Open In Windows 10
  • Outlook can’t send mail in Windows 10: error Ox800CCC13
  • Missing Outlook data files after upgrading Windows?

Outlook Top Issues

  • The Windows Store Outlook App
  • The Signature or Stationery and Fonts button doesn’t work
  • Outlook’s New Account Setup Wizard
  • Outlook 2016: No BCM
  • Exchange Account Set-up Missing in Outlook 2016

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Contact Tools

Data Entry and Updating

Duplicate Checkers

Phone Number Updates

Contact Management Tools

Diane Poremsky [Outlook MVP]

Make a donation

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Outlook Suggestion Box (UserVoice)

Slipstick Support Services

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Advertise | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2023 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment