I need to send email from different mail servers depending on whether
I'm at home or work, what is the easiest way to do this with Entourage
2004?
I just installed this script that Barry Wainwright posted here some time
ago. It works great:
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