Changing SMTP servers for multiple accounts

K

Katrina Worley

I'm a part-time college professor, working out of multiple campuses each
semester. I have a different e-mail account for each campus. Each campus
uses a different SMTP server. I need to be able to check all of my accounts
using my laptop from where ever I am, AND be able to reply from those
accounts- so I change the SMTP server on each account frequently. With 5-8
accounts in any given semester, I'm not interested in having to change each
one individually. Is there any way with Entourage to change all SMTP
servers at once? So far, GyazMail is the only e-mail client that I've found
that has a global SMTP server setting that allows me to change all accounts
with a single change of settings.

Katrina
 
B

Barry Wainwright

I'm a part-time college professor, working out of multiple campuses each
semester. I have a different e-mail account for each campus. Each campus
uses a different SMTP server. I need to be able to check all of my accounts
using my laptop from where ever I am, AND be able to reply from those
accounts- so I change the SMTP server on each account frequently. With 5-8
accounts in any given semester, I'm not interested in having to change each
one individually. Is there any way with Entourage to change all SMTP
servers at once? So far, GyazMail is the only e-mail client that I've found
that has a global SMTP server setting that allows me to change all accounts
with a single change of settings.

Katrina

You can do it easily with a script. Click this link to load the script into
scriptEditor:
<">http://tinyurl.com/2xc4d> <http://tinyurl.com/2xc4d>



property homeServer : "mail.btinternet.com"
property workServer : "192.168.0.68"
property currentLocation : ""

if currentLocation is "Work" then
set defaultButton to 1
else
set defaultButton to 2
end if

set theLocation to button returned of (display dialog "Select a Location:"
buttons {"Home", "Work"} default button defaultButton)

tell application "Microsoft Entourage"

set theAccounts to every POP account & every IMAP account

if theLocation is "Work" then
repeat with anAccount in theAccounts
tell anAccount
if SMTP server is homeServer then
set SMTP server to workServer
set SMTP requires authentication to true -- May not be
required - depends on your setup
end if
end tell
end repeat
set currentLocation to "Work"
else
repeat with anAccount in theAccounts
tell anAccount
if SMTP server is workServer then
set SMTP server to homeServer
set SMTP requires authentication to false -- May not be
required - depends on your setup
end if
end tell
end repeat
set currentLocation to "Home"
end if
end tell
 
K

Katrina Worley

OK- I see that this will allow me to switch between two servers. I have 5
to switch between. Is there a way to modify the script to do this? Keep in
mind that I¹ve NEVER done scripting.

Thanks for the help-

Katrina
 
P

Paul Berkowitz

Get my "SMTP Location X" script which does it all for you. It has a PREFS
script helper which lets you enter all the information - for 5 or as many
locations as you want, lets you enter exceptions, authentication variations
among the servers, lets you set if there's any account you can't check at a
particular location, etc. etc. Then you just use it. You can make changes if
and when you want to.

The script is at

MacScripter.net <http://macscripter.net/scriptbuilders/>


--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - **2004**, X
or 2001. It's often impossible to answer your questions otherwise.



From: Katrina Worley <[email protected]>
Newsgroups: microsoft.public.mac.office.entourage
Date: Tue, 06 Jul 2004 15:11:46 -0700
Subject: Re: Changing SMTP servers for multiple accounts

OK- I see that this will allow me to switch between two servers. I have 5
to switch between. Is there a way to modify the script to do this? Keep in
mind that I¹ve NEVER done scripting.

Thanks for the help-

Katrina
 
K

Katrina Worley

Excellent! It looks like this will do what I need. Thank you very much

Katrina
 
Top