Setting Sender Based on Recipient

S

Sam Elowitch

I want to automatically change the sender of an outgoing e-mail based on who
the recipient is.

This code doesn't work, however:
tell application "Microsoft Entourage"
if recipient of outgoing message contains address "[email protected]" then
set sender of outgoing message to address "[email protected]"

I get an error message saying AS "cannot get the recipient of the outgoing
message."

-Sam
 
Top