?
Solved

Chaning SMTP/POP3 settings using VB.NET

Posted on 2006-10-29
3
Medium Priority
?
893 Views
Last Modified: 2008-01-09
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...!
0
Comment
Question by:shkhurram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
whatsit2002 earned 2000 total points
ID: 17830254
While I'll have to do some research about changing a user's email profile via managed code, may I also suggest another route? It sounds like the problem you are facing is more of an infrastructure problem and may be solved by running a local DNS server. You could put an entry in the DNS server like:

#The domain name    #the ip of your local server
mail.mydomain.com   192.168.1.5

When the local server goes down, you can then just re-point the dns entry to the new/external IP address like:
mail.mydomain.com   XXX.XXX.XXX.XXX #(external server's ip goes here)

You would point your client workstations to use the internal DNS server and then when the server goes down next time, you can change your DNS entry and everyone will be using the new server without running something on each local machine.

I'll check into changing an email profile programmatically, but please let me know what you think about the DNS server solution.

Thanks.

Jason
0
 
LVL 7

Expert Comment

by:whatsit2002
ID: 17830561
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
0
 
LVL 1

Author Comment

by:shkhurram
ID: 17830856
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!
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Starting up a Project
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question