vba - Outlook Custom Rule for Replying -
i'm getting e-mails through company e-mail server. because of of them coming forwarded mails info@mycompany.com.
i'm looking rule when try reply mails reply forwarded e-mail address.
thanks.
you can create rule in outlook can trigger vba macro procedure. in code can whatever need using outlook object model. should following one:
public sub test(mail mailitem) ' end sub
where mail
object passed parameter represents incoming email.
instead of creating rules in outlook may consider handling incoming emails using newmailex event of application class. newmailex
event fires when new message arrives in inbox , before client rule processing occurs. can use entry id returned in entryidcollection array call namespace.getitemfromid method , process item.
finally, may find getting started vba in outlook 2010 article helpful.
Comments
Post a Comment