Due to unforseen complications, I am unable to receive e-mail abroad on my laptop on my normal account. I have set up a gmail account to which all my email is forwarded so that I can read it while abroad. However, this is only a temporary solution, and I do not want people to reply to my gmail account because it will be going away soon. Currently, each time I reply to an e-mail, I set the “Reply to” address to my normal account. Could anyone tell me how to write an applescript that can do this each time I compose or reply to email?
Hi,
This isn’t an Applescript solution I’m afraid.
In Mail’s preferences click on accounts. In the gMail account details try replacing your gMail email address with your normal email address.
Bes wishes
John M
If John’s solution doesn’t work, you could try using GUI scripting to automatically tab to the “reply to” field and enter your email address.
I’ve never used gmail, but perhaps something like:
tell application "Safari" to activate
tell application "System Events"
keystroke tab
keystroke "me@myaddess.com"
end tell
The other possiblity would be to manually send mail with the UNIX sendmail command.
do shell script "sendmail -bm -f me@myaddress.com you@youraddress.com < /path/to/file/filename.txt"
It will email the plain text file, which needs to have the following info:
Subject: This is a test
From: my name me@myaddress.com
Reply-To: my name <me@reply_to_address.com>
Blank Line (return)
Body of Message