Search OutlookPower's 8,351 Outlook and all-things-email article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
THIS WEEK'S POWERTIP
Changing SMTP servers on the fly
By Diane Poremsky

Many ISPs require that users route all outbound mail through their mail servers (that is, the ISP's servers, rather than, say, your company's own mail server). If you happen to use several different ISPs, you'll to change the SMTP (Simple Mail Transport Protocol) account each time you change how you connect to the Internet.

Editing the account properties dialog each time gets old fast, especially if you switch connection methods often. This annoyance is particularly prevalent among users who carry their laptops from location to location.

A common workaround is to create a new account using another SMTP server. While this works well for two SMTP servers, giving you Account A - SMTP 1, Account B - SMTP 1, Account A - SMTP 2, Account B - SMTP 2, it can get unmanageable if you have too many accounts since you need to remember to switch accounts if you reply to mail downloaded through an account using the other SMTP server.

Another alternative is to make a copy of your Outlook profile, so you have one profile for SMTP 1 and another profile for SMTP 2. Both profiles will be identical except for the SMTP servers used, right down to the account names and PST files used. When you switch Internet connections, close Outlook and reopen Outlook using the correct profile.

Andy Helsby recommends a method which needs only one profile. Use a server called "mail" as your SMTP server in all accounts and edit the hosts file in the windows\system32\drivers\etc directory with the correct IP address.

Enter the IP addresses for each SMTP server and comment out the SMTP servers you aren't using with the current connection. To switch SMTP servers, open the Hosts file using the shortcut and comment out the old SMTP server and uncomment the SMTP server you want to use. As an example, your entries will look like this when you are using the SMTP server you normally connect to when you send mail from home:

#192.168.4.32 mail # Use this SMTP at Work
66.55.44.33 mail # Use this SMTP from Home

To make editing the Hosts file easier, add a shortcut to the hosts file to your Quick Launch bar to open the hosts files in Notepad, using this command line:

notepad c:\windows\system32\drivers\etc\hosts

If you are into writing batch files or scripts, create two batch files and two hosts files. Home.bat copies the hosts.home file to hosts, while Work.bat copies hosts.work to the hosts file when you run it. Since the SMTP server name doesn't change, you can run either batch file when Outlook is open.

Diane Poremsky is the president of CDOLive LLC and a Microsoft Outlook MVP. She's author of Teach Yourself Outlook 2003 in 24 Hours (Sam's, 2003) and coauthor of OneNote 2003 for Windows (Visual QuickStart Guide). For questions or suggestions for future columns, write her at outlook@cdolive.com.


Other articles you might like
Home > Using Outlook > Managing Email (18 articles)
   How not to screw up when you send email
   How to separate email accounts and still manage them
   Sperry Software's Attachment Save for Microsoft Outlook
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent OutlookPower Articles
Can Outlook run when it's not running (and other mysteries)?
Exploring the dark side of social networks
How not to screw up when you send email
How to separate email accounts and still manage them
How to convert a PST file from an old format to a new format
Visnetic MailFlow can automate your organization's mail processing
How to make Outlook launch an app at a specific time?
OutlookPower News Center
Touch in Windows 7: Just for show?
Windows XP User: I'm No Thief
Windows 7 May Get Family Pack Discount
Microsoft Unleashes Five Service Packs for Its Enterprise Security Wares
Give an Old Desktop New Life
Europe won't pay more for Windows 7. Really!
IT wish list for SharePoint 2010: Keep it simple
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
DominoPower: What to look for in a Domino-based document management solution
-- Advertisement --

Write for OutlookPower today!
Share your experience and expertise with other Outlook and Exchange users, administrators, and developers. OutlookPower Magazine has grown nicely and now has new opportunities for contributing authors and editors.

Write about something you're an expert on and get your name in lights.

For Writers' Guidelines and to discuss topics, contact Staff Editor Steve Niles. This is your opportunity to shine in front of your peers, your clients, and other readers.

Click for more info!

-- Advertisement --

Five Email Mistakes You Should Avoid
Have you ever made any of these mistakes?

  • Forgotten to send an attachment you promised in a message
  • Replied-to-all, annoying everyone
  • Forgotten to Reply-to-All, annoying everyone
  • Sent emails using the wrong email account
  • Said something you oh-so-knew-better than to say

Send Guard can keep you looking good by saving you from yourself.

Tap here to download a fully-functional 30-day trial.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
The Power Magazine for Microsoft Outlook and Exchange Users at OutlookPower.com
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Outlook is a trademark of Microsoft Corporation.
Editor's Login