How can I make a macro in Outlook 2007 to change the smtp address and port?
Posted on 2009-02-10
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?