Link to home
Start Free TrialLog in
Avatar of shkhurram
shkhurram

asked on

Chaning SMTP/POP3 settings using VB.NET

Hello All

I have a local email server in my office which downloads email from my pop3/smtp server; all the workstations use office outlook for emails, etc. and are connected to this local server. Accounts for each users are pop3/smtp.

Recently i faced a problem, for some off reason my server went down while i was on holidays and all the email system of my office did not work. Now most of the people working there cannot change the email account properties in outlook, is there a way to change the pop3/smtp setting using vb.net ?

Reason is, that in future, if this kind of thing happens, atleast i have software written in VB.NET which can change the settings for outlook email account to the one on the internet, so they don't have to wait for me to come back to work.

Thanks in advance...!
ASKER CERTIFIED SOLUTION
Avatar of whatsit2002
whatsit2002
Flag of United States of America image

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
Well, it looks like you might have to figure out how to edit PST files to change settings like this. I was hoping the profile settings (i.e. smtp and pop3 settings) would be stored somewhere in the registry. Unfortunately, it looks like they are stored in the personal folder (PST file) along with everything else about your profile.

If you are still set on editing the settings programmatically, I would recommand taking a look at:
http://www.dimastr.com/outspy/

If you want to edit PST files, you will need to learn a lot about extended MAPI and that URL is a pretty good resource. It looks like the URL above has a tool that lets you visually see what's in your PST file. Unfortunately, I'm not familiar with MAPI programming, so I'm not going to be much help... sorry.

Please let me know what your final solution involved.

Thanks.

Jason
Avatar of shkhurram
shkhurram

ASKER

Jason

I have doing research for the past two days my self, and it seems that there is no way of changing the email account via visual basic.net - and to be really honest, i really like the idea of having the dns enterie. Although I do have a local DNS server which can be changed remotly without any change, and this method is less head ache compared to chaning the email account. I think I will go for this - thanks!