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?

Thanks!

-=Tim=-

Re: Changing Servers for Sending eMail by Diane

Diane
Tue Feb 13 20:02:07 CST 2007

On 2/13/07 4:29 PM, in article
1171412960.091639.220760@j27g2000cwj.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> 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?

Open Accounts. Select the account for sending and then click on "Make
Default" in the top bar.

--
Diane Ross, Microsoft Mac MVP
Entourage Help Page
<http://www.entourage.mvps.org/>
One of the top five MS Entourage resources listed on the Entourage Blog.
<http://blogs.msdn.com/entourage/>



Re: Changing Servers for Sending eMail by Jeff

Jeff
Tue Feb 13 20:23:17 CST 2007

On 2/13/07 4:29 PM, in article
1171412960.091639.220760@j27g2000cwj.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> 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



Re: Changing Servers for Sending eMail by TimB

TimB
Wed Feb 14 04:58:10 CST 2007

Diane and Jeff:

Thanks Diane, however I was hoping for something a little more "in
your face" as the user (it actually isn't me) is an extreme novice,
even more than me. :)

On Feb 13, 9:23 pm, Jeff Zienowicz <j...@jeffz.netINVALID> wrote:
> On 2/13/07 4:29 PM, in article
> 1171412960.091639.220...@j27g2000cwj.googlegroups.com, "TimB"
>
> <timbarw...@gmail.com> wrote:
> > 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

Thanks Jeff.

I don't know a lot about scripts, the only other one I've used was
also in Entourage (deleting server email), will this popup a dialog?
Something like "home or work" would be optimal. Otherwise what is the
user experience?

Thanks so much!!!!

-=Tim=-


Re: Changing Servers for Sending eMail by Barry

Barry
Wed Feb 14 10:22:27 CST 2007

On 14/2/07 02:23, in article C1F7B295.22E2%jeff@jeffz.netINVALID, "Jeff
Zienowicz" <jeff@jeffz.netINVALID> wrote:

> On 2/13/07 4:29 PM, in article
> 1171412960.091639.220760@j27g2000cwj.googlegroups.com, "TimB"
> <timbarwick@gmail.com> wrote:
>
>> 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:


Thanks for the good word Jeff,

It's worth mentioning that you should save the script as a compiled script &
put it in the ?Entourage Script Menu Items¹ folder in your ?Microsoft User
Data¹ folder. The script can be manually run from the Script menu in
Entourage.



--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
The Entourage User's WebLog has moved!
For hints, tips and troubleshooting go to <http://www.barryw.net/weblog/>



Re: Changing Servers for Sending eMail by Hoi

Hoi
Wed Feb 14 11:12:28 CST 2007

Hi Jeff,

I like your script, I have the following questions:

1, My case is a bit different. I want to send email with No.1 Account, but
I want to post thread to Newsgroup with No.1 Account. What shall I change
the script?

2, I think this is just the "design defect". When sending an email, we can
select any accounts from the list. But when you post a message, you have no
choice to select which account you want to use. It is strange, isn't it?

3, You can cc to an "email address" if you write a post; but you could not
cc to an "Newsgroup address" if you write an email. I think it is just
stupid. May I know is it true and it is my mistake?

4, How do you get your email like this "jeff@jeffz.netINVALID" ???

Thanks!

Hoi Nap


On 07/02/13 21:23, in article C1F7B295.22E2%jeff@jeffz.netINVALID, "Jeff
Zienowicz" <jeff@jeffz.netINVALID> wrote:

> On 2/13/07 4:29 PM, in article
> 1171412960.091639.220760@j27g2000cwj.googlegroups.com, "TimB"
> <timbarwick@gmail.com> wrote:
>
>> 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
>
>


Re: Changing Servers for Sending eMail by Jeff

Jeff
Wed Feb 14 13:38:48 CST 2007

On 2/14/07 2:58 AM, in article
1171450690.321123.17790@p10g2000cwp.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> Thanks Diane, however I was hoping for something a little more "in
> your face" as the user (it actually isn't me) is an extreme novice,
> even more than me. :)

In addition to showing up in the Scripts menu, the script in my previous
post can easily have a key combination assigned to it, which makes it pretty
seamless.

> I don't know a lot about scripts, the only other one I've used was
> also in Entourage (deleting server email), will this popup a dialog?
> Something like "home or work" would be optimal. Otherwise what is the
> user experience?

The script -- and again thanks to Barry Wainwright for creating and sharing
it -- does pop up a dialog where you select "Work" or "Home;" it's very
simple and very fast. The button descriptions would be of course easy to
change by editing the script, even if you're not an AppleScript expert.

There is also a more elaborate script for changing SMTP servers that Paul
Berkowitz wrote. It's called "SMTP Location X;" you can find it at
macscripter.net. It's extremely flexible, but I believe it relies on
setting up an OS X "location" in the network preferences for each SMTP
server you want to use -- handy if other network settings need to be changed
at your various locations, but perhaps overkill if the only thing that needs
to be changed is the SMTP server.

Jeff


Re: Changing Servers for Sending eMail by Jeff

Jeff
Wed Feb 14 13:49:28 CST 2007

On 2/14/07 9:12 AM, in article C1F8AD2C.3980%hoinap@swin.edu.au, "Hoi Nap at
Swin" <hoinap@swin.edu.au> wrote:

> I like your script, I have the following questions:

Barry Wainwright wrote the script; I just reposted it.

> 1, My case is a bit different. I want to send email with No.1 Account, but
> I want to post thread to Newsgroup with No.1 Account. What shall I change
> the script?

I assume you mean send mail with "No. 1" and post news with "No. 2."

> 2, I think this is just the "design defect". When sending an email, we can
> select any accounts from the list. But when you post a message, you have no
> choice to select which account you want to use. It is strange, isn't it?

You actually do -- see below.
>
> 3, You can cc to an "email address" if you write a post; but you could not
> cc to an "Newsgroup address" if you write an email. I think it is just
> stupid. May I know is it true and it is my mistake?

I've never needed to do this and therefore never tried, so I can't comment.

> 4, How do you get your email like this "jeff@jeffz.netINVALID" ???

This is easy in Entourage. Just create a new POP account with the desired
email address you want to use on the newsgroup (your "INVALID" address). You
can put just an "x" in the SMTP server field and nothing at all in the
"Receiving Mail" section (you'll have to dismiss a dialog from Entourage
about the account being "send only").

Then, in your newsgroup account settings, choose the address you created as
the address to use for newsgroup postings ("Email account" in the "Personal
Information" section).

Jeff


Re: Changing Servers for Sending eMail by TimB

TimB
Wed Feb 14 17:02:52 CST 2007

Barry (and Jeff)

On Feb 14, 11:22 am, "Barry Wainwright [MVP]" <b...@mvps.org.INVALID>
wrote:

>
> It's worth mentioning that you should save the script as a compiled scrip=
t &
> put it in the =C5=92Entourage Script Menu Items=C2=B9 folder in your =C5=
=92Microsoft User
> Data=C2=B9 folder. The script can be manually run from the Script menu in
> Entourage.
>

This sounds great. Is there a resource you can point me to about
saving/compiling scripts?

Can this be made to run automatically every time Entourage is started?

Thanks again for all your help. :)

-=3DTim=3D-


Re: Changing Servers for Sending eMail by Diane

Diane
Wed Feb 14 17:39:40 CST 2007

On 2/14/07 2:58 AM, in article
1171450690.321123.17790@p10g2000cwp.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> Thanks Diane, however I was hoping for something a little more "in
> your face" as the user (it actually isn't me) is an extreme novice,
> even more than me. :)

Selecting an account as default can't be more simple. Maybe I just don't get
you setup.


--
Diane Ross, Microsoft Mac MVP
Entourage Help Page
<http://www.entourage.mvps.org/>
One of the top five MS Entourage resources listed on the Entourage Blog.
<http://blogs.msdn.com/entourage/>



Re: Changing Servers for Sending eMail by TimB

TimB
Thu Feb 15 09:08:00 CST 2007

On Feb 14, 6:39 pm, Diane Ross <d...@nospam.mvps.org.invalid> wrote:
> On 2/14/07 2:58 AM, in article
> 1171450690.321123.17...@p10g2000cwp.googlegroups.com, "TimB"
>
> <timbarw...@gmail.com> wrote:
> > Thanks Diane, however I was hoping for something a little more "in
> > your face" as the user (it actually isn't me) is an extreme novice,
> > even more than me. :)
>
> Selecting an account as default can't be more simple. Maybe I just don't get
> you setup.

I was looking for something more "in your face" so he would be
prompted rather than have to remember.

>
> --
> Diane Ross, Microsoft Mac MVP
> Entourage Help Page
> <http://www.entourage.mvps.org/>
> One of the top five MS Entourage resources listed on the Entourage Blog.
> <http://blogs.msdn.com/entourage/>



Re: Changing Servers for Sending eMail by Jeff

Jeff
Thu Feb 15 10:16:30 CST 2007

On 2/14/07 3:02 PM, in article
1171494172.414457.242480@h3g2000cwc.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> Can this be made to run automatically every time Entourage is started?

Forgot to mention that, yes, a script can run every time Entourage is
launched. Just create a schedule with the When set to "At Startup" and a
"Run AppleScript" action pointing to the script that changes SMTP servers.

Jeff


Re: Changing Servers for Sending eMail by Diane

Diane
Thu Feb 15 15:29:01 CST 2007

On 2/15/07 7:08 AM, in article
1171552079.953489.20500@a34g2000cwb.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

>> Selecting an account as default can't be more simple. Maybe I just don't get
>> you setup.
>
> I was looking for something more "in your face" so he would be
> prompted rather than have to remember.

Did I miss this was a laptop? I was thinking two separate computers.

As Jeff mentioned, you can have a schedule launch an applescript at startup.
This should work under all circumstances.


--
Diane Ross, Microsoft Mac MVP
Entourage Help Page
<http://www.entourage.mvps.org/>
One of the top five MS Entourage resources listed on the Entourage Blog.
<http://blogs.msdn.com/entourage/>



Re: Changing Servers for Sending eMail by TimB

TimB
Thu Feb 15 19:10:29 CST 2007

On Feb 15, 4:29 pm, Diane Ross <d...@nospam.mvps.org.invalid> wrote:

>
> Did I miss this was a laptop? I was thinking two separate computers.
>

I didn't explain it well. Sorry! :)

Anyone have suggestions for "Applescript for Dummies" resources? :)

-=Tim=-


Re: Changing Servers for Sending eMail by Allen

Allen
Fri Feb 16 17:20:30 CST 2007

On 2/15/07 5:10 PM, in article
1171588229.362930.246380@a75g2000cwd.googlegroups.com, "TimB"
<timbarwick@gmail.com> wrote:

> On Feb 15, 4:29 pm, Diane Ross <d...@nospam.mvps.org.invalid> wrote:
>
>>
>> Did I miss this was a laptop? I was thinking two separate computers.
>>
>
> I didn't explain it well. Sorry! :)
>
> Anyone have suggestions for "Applescript for Dummies" resources? :)
>
> -=Tim=-
>
There's no such book, unfortunately. But there are a good dozen thorough
books about scripting. Basic Entourage info can be found on the Entourage
help website:

http://entourage.mvps.org/script/index.html

Books I can recommend:

AppleScript: A Comprehensive Guide...(Rosenthal)
AppleScript: The Missing Manual
AppleScript: The Definitive Reference

The first two do a fair job of introducing scripting to a novice; the latter
is a more thorough reference manual.

A new guide for scripting Office Apps will be available in April:

<http://mactech.com/news/?p=1009354>


Re: Changing Servers for Sending eMail by TimB

TimB
Wed Mar 07 14:13:17 CST 2007

On Feb 16, 6:20 pm, Allen Watson <watson.al...@comcast.net> wrote:
> On 2/15/07 5:10 PM, in article
> 1171588229.362930.246...@a75g2000cwd.googlegroups.com, "TimB"
>
> <timbarw...@gmail.com> wrote:
> > On Feb 15, 4:29 pm, Diane Ross <d...@nospam.mvps.org.invalid> wrote:
>
> >> Did I miss this was a laptop? I was thinking two separate computers.
>
> > I didn't explain it well. Sorry! :)
>
> > Anyone have suggestions for "Applescript for Dummies" resources? :)
>
> > -=Tim=-
>
> There's no such book, unfortunately. But there are a good dozen thorough
> books about scripting. Basic Entourage info can be found on the Entourage
> help website:
>
> http://entourage.mvps.org/script/index.html
>
> Books I can recommend:
>
> AppleScript: A Comprehensive Guide...(Rosenthal)
> AppleScript: The Missing Manual
> AppleScript: The Definitive Reference
>
> The first two do a fair job of intro