Link to home
Start Free TrialLog in
Avatar of VikingEgil
VikingEgil

asked on

How can I make a macro in Outlook 2007 to change the smtp address and port?

When I am at work, there is a company policy saying that we can only use a specific smtp server (yoda.akershus-fk.no). This smtp server however, can only be used at work.
At home I am using another smtp server, the one my DSL provider is providing me.
This smtp server also have a different port.

Changing between these settings everytime I need to check my mail at work or outside work, is not very practical, and this is the same for everyone who works here.

So what I need to make, is two simple macro buttons, one that sets the company smtp server and port 25, and one that sets whatever settings the person needs to use outside of work.

I can not find any option to "record a macro" in outlook, like theres is in Excel etc, so i figure I have to use visual basic? But I have no idea how to manipulate outlook settings from VB, I have only been using it in access. Anyone with insight in this?
ASKER CERTIFIED SOLUTION
Avatar of dds110
dds110

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VikingEgil
VikingEgil

ASKER

Actually, I have good experience with using .prf files and office resource kit in general, so that is an excellent idea :) should have thought of it myself :p
Glad I could help.  Good Luck.