automatic response with an attachment based on the subject line

Not open for further replies.


New Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server

I would like to know how I create an automatic email response with an attachment based on the subject line.

To clarify: if somebody send "Project X" in the subject, where "project" is the trigger and "X" is the variable, outlook needs to send automatically to this person the file named X.pdf from a fixed folder.

Would be super if someone could help me with that.

Kind regards,

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
there are some samples here Run a script rule: Autoreply using a template - if the attachment name is in the subject in full, all attachments are stored in the same folder, and you can easily pick it out using code, then you just need to get the name using instr function. otherwise, you can use select case or an arrary to match the code word with the attachment name.

code samples for adding attachments is here - Use an Outlook Macro to Send Files by Email
Not open for further replies.
Thread starter Similar threads Forum Replies Date
B Removing Recipients from an automatic response Outlook VBA and Custom Forms 2
B resend if no reply and send an automatic reminder Outlook VBA and Custom Forms 0
J Automatic color category according to variable domains Outlook VBA and Custom Forms 4
E How to send automatic emails in outlook 2010 Using Outlook 1
N VBA Script to Send Automatic Emails from Outlook 2010 Outlook VBA and Custom Forms 1
M Outlook 2016 Desktop - Automatic Rule Processing Using Outlook 3
P Threat to being a spammer while sending automatic Emails through VBA Using Outlook 3
reza Macro to automatic reply using orignal mail Outlook VBA and Custom Forms 10
B Automatic picture download and changing email addresses Using Outlook 3
J why won't the automatic send/receive work Using Outlook 7
S rule, automatic replies, restricting them to within the company Using Outlook 1
I Automatic reply to an email Using Outlook 0
P Daily Automatic Reply Using Outlook 1
P Automatic reply on incoming messages in outlook using VBA(only Specifi person) Using Outlook 14
R automatic signature Using Outlook 0
B Looking for an add-in or a way to send automatic replies based off a list Using Outlook 2
H Automatic excel data added to Certain Emails that are received Using Outlook 3
M Automatic Bcc Using Outlook 2
C starting Outlook 2003 sp3 sets Junk Email setting to 'No automatic filtering' Using Outlook 3
K automatic cleanup folder Using Outlook 3
B How to automatic save Sending or replying contacts e-mails into contacts? Using Outlook 0
J Form design - how do I insert an automatic date/time field? Using Outlook 2
C Text reply mail in Outlook 2010 has automatic margin indent Using Outlook 9
T Automatic forwarding rule strips attachment Using Outlook 3
C How do I cancel automatic e-mail forwarding? Using Outlook 1
F Schedule an automatic send/receive every 1 minute Using Outlook 1
O I suddenly can't open Outlook after getting a microsoft automatic update. Using Outlook 2
M Outlook email not working since last automatic update. Using Outlook 2
A How do I stop automatic e-mail forwarding? Using Outlook 2
C Configuring automatic reply with an approved message attached to original received message that will be forward to a 3rd party Using Outlook 2
R Automatic Send/Receive when Opening 2010 Using Outlook 1
D Automatic back up of Outlook & BCM Using Outlook 3
D Automatic respond for sending mail problem Exchange Server Administration 4
C Email automatic paragraph and symbol formatting Using Outlook 1
R (GPO?) Setting that controls automatic picture download Outlook 2002 Using Outlook 3
M Download pictures automatic in incoming mails Using Outlook 1
R Disable automatic creation of outlook 2010 contacts for recipients Using Outlook 5
R outlook 2010 Automatic replies not opening Using Outlook 1
E Re: Disable automatic creation of outlook 2010 contacts for recipients Exchange Server Administration 2
H Outlook 2010 IMAP folders in Favorites and automatic mail check. Using Outlook 5
D Disable Automatic Folder Expansion Using Outlook 2
A Automatic print in outlook: Using rules and alerts Using Outlook 3
Z How to disable Automatic Wrap Text for sent email? Using Outlook 3
M Is it unsafe to block Automatic DB Activation with only 2 DAG members and 1 FSW??? Exchange Server Administration 8
R Setting up automatic meeting request acceptance Using Outlook 1
F Automatic formatting of single entries in Outlook calendar Using Outlook 1
J Automatic formatting a single instance of a recurring meeting Using Outlook 11
M Exchange 2010 Services are not starting automatic on startup Exchange Server Administration 39
J Automatic Send Receive not working Using Outlook 2
R How to disable automatic send/receive in Outlook2010 Using Outlook 7
Similar threads