View Single Post
  #1  
Old January 10th 12, 01:11 AM
wotme wotme is offline
Junior Member
 
First recorded activity at Outlookbanter: Apr 2011
Posts: 1
Default auto reply to acknowledge attachment

Hi
I am using a small code which sends a reply to a specified sender. I would like to add a line the reply referring to the name of the attachment, if there is one. I also want to add my signature. I have activated the signature in options to be added on a reply, but it doesnt appear.

I would prefer if possible, to add the signature via code, rather than it appear on every reply/forward.

Anybody??
Code:
 
Sub IP2(objMsg As MailItem) 
    Dim objReply As MailItem 
     
    Set objReply = objMsg.Reply 
    objReply.Subject = "Ref your email - " & objReply.Subject 
    objReply.Body = "Your email with attachments has been received" & vbCrLf & vbCrLf & "Thanks" & vbCrLf & "Chris" 
     
    objReply.Display 
    objReply.Send 
    Set objReply = Nothing 
     
     
End Sub
Ads