Account check

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm running Outlook 2003 on Windows XP SP2.

I'm trying to put together some code that, when I send or reply to an email,
will check which account I am about to use and, if necessary, alter it to
something specific. This is to ensure that I always reply to emails via
one of my ISP accounts ( a broadband one) irrespective of which ISP account
the received emails may have arrived on(various dial-up ones) . Something
like :-

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Item.xxxxx = "mybadaccount" Then Item.xxxxx = "mygoodaccount"
End Sub

Will this work? .... or am i barking up the wrong tree? Is there a better
way? What do I put for xxxxx?

Many Thanks

Rob
 
Back
Top