Note: The other languages of the website are Google-translated. Back to English

Outlook: automatically attach files in new message

Let’s say you want to attach your company’s profile in all of new created email messages automatically in Microsoft Outlook, how do you deal with it? There are two tricky methods to help you automatically attach files in new messages in Microsoft Outlook.

Automatically attach files in new message with customized template

Automatically attach files in new message with VBA

Office Tab - Enable Tabbed Editing and Browsing in Office, and Make Work Much Easier...
Kutools for Outlook - Brings 100 Powerful Advanced Features to Microsoft Outlook
  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by rules; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails at once; Auto Add Greeting when reply; Auto Add Date&Time into subject...
  • Attachment Tools: Auto Detach, Compress All, Rename All, Auto Save All... Quick Report, Count Selected Mails, Remove Duplicate Mails and Contacts...
  • More than 100 advanced features will solve most of your problems in Outlook 2021 - 2010 or Office 365. Full features 60-day free trial.

arrow blue right bubbleAutomatically attach files in new message with customized template

This method will guide you to create a new template with an attachment, and then apply this template. It will automatically attach the specified file when you are applying this customized template in Microsoft Outlook.

Step 1: Create a new email message:

  1. In Outlook 2007, please click the File > New > Mail Message.
  2. In Outlook 2010 and 2013, please click the New Email button on the Home tab.

Step 2: In the Message window, attach files with clicking the Insert > Attach File, then in the Insert File dialog box, selecting the specified files and clicking the Insert button.

Step 3: Click the File > Save As in the Message window. (If you are using Outlook 2007, please click the Office button at the upper-left corner > Save As > Save As.)

Step 4: In the Save As dialog box,

  1. Enter a name for the new template in the File name: box;
  2. Click the Save as type: box, and select the Outlook Template in the drop down menu;
  3. Click the Save button.

Note: The template will be automatically saved to the Outlook Template folder if you select Outlook Template from the Save as type drop down list.

Step 5: Close current composing email message.

The specific template has been created, and you can apply it if you want to automatically attach the file in your new email message. You can do it as following:

Step 6: Open the Choose Form dialog box:

  1. In Outlook 2007, click the File > New > Choose Form.
  2. In Outlook 2010 and 2013, click the New Items > More Items > Choose Form.

Step 7: In the Choose Form dialog box:

  1. Click the Look in: box, and select the User Templates in File System from the drop down list;
  2. Click to highlight the customized template in the template list;
  3. Click the Open button.

Then a new email message is created with attaching the specified file at once.

Step 8: Compose the new email message, and click the Send button.


arrow blue right bubbleAutomatically attach files in new message with VBA

There is a trick to automatically attach files in new messages with VBA macro in Microsoft Outlook.

Step 1: Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

Step 2: Click the Insert > Module.

Step 3: Paste the following code into the new module window.

Sub NewMessageWithAttachment()
Dim oMsg As Outlook.MailItem
Set oMsg = Application.CreateItem(olMailItem)
With oMsg
.Attachments.Add "C:\Attachment.doc"
.Display
End With
End Sub

Step 4: Change the saving path of attachment in the code according to your needs.

For example, if the file you want to attach named “Office Tab” and the file extension is “.docx”, and its saving path is C:\Users\username\Desktop, please replace the “C:\Attachment.doc” with "C:\Users\username\Desktop\Office Tab.docx" in the code.

Step 5: Press F5 key to run this VBA macro.

Then you will see a new email message is created with attaching the specified file at once.

Step 6: Compose the new email message, and click the Send button.


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
Comments (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This is very useful, can you please advise how may I add "body" and "to" in the codes
This comment was minimized by the moderator on the site
Hi also, I have done the same for multiple attachments, but the problem if I set 3 files and 1 of them is not there the email will not be sent. is there a way to set it to attach what ever available and send it thanks in advance
This comment was minimized by the moderator on the site
is there any way i can send mails to a particular mail id attaching files from a particular folder in my pc automatically
This comment was minimized by the moderator on the site
is there any particular way i can send mails to a particular mail id attaching files automatically from a folder. I want the whole process to be done automatically once the mail id and folder is set set. Its gonna be heaven if that's possible as my job pressure can be reduced at least a bit by the same.
This comment was minimized by the moderator on the site
Instead of creating new email how to use email template and attach files automatically. pls can you suggest the VBA code for this?
This comment was minimized by the moderator on the site
Sub NewMessageWithAttachment()
Dim oMsg As Outlook.MailItem
Set oMsg = Application.CreateItem(olMailItem)
Set oMsg = Application.CreateItemFromTemplate("your template address")
With oMsg
.Attachments.Add "your attachment address"
.Display
End With
End Sub
'Press F5 key to run this VBA macro.
'I tried this and it worked. I am not an expert in VB.
This comment was minimized by the moderator on the site
Can you guide me, I get an error when running the Marco 
This comment was minimized by the moderator on the site
how can I attache file automatically from some shared location and send schedule them to b sent in everymonth and on a specific date
This comment was minimized by the moderator on the site
how to add an attachment in automatic reply in outlook
This comment was minimized by the moderator on the site
I've got a coworkers outlook that auto attaches EVERY email. This was never set up and just randomly started. Went away when the IT dept transitioned it to O365 (desktop app), but then randomly came back. I've seen nothing set up whatsoever with rules for this or anything. Any ideas how to get this to stop? Especially since we have customers receiving these emails and go to click the attachment and nothing opens. Plus it makes it that much more difficult finding the right email with the right attachment.
This comment was minimized by the moderator on the site
Hi there, do you mean that an email account in Outlook auto attaches other emails when reply to or send a message? And the attachments that has noting?
This comment was minimized by the moderator on the site
При нажатии на эл.адрес в документе pdf автоматически создается новое письмо в outlook. При нажатии на несколько разных адресов outlook создает новое письмо для каждого, можно сделать так, чтобы он добавлял нового адресата в одно письмо ?
This comment was minimized by the moderator on the site
Hi there,

I think you will have to copy the email addresses and then add them as recipients of one email.

Amanda
This comment was minimized by the moderator on the site
Ola,
se o anexo estiver em uma pasta na rede ou em outra maquina, como faz para anexar automaticamente?
There are no comments posted here yet

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL