Mail is my mail-program.
I own a domain funske.com and I use this for all my mail.
Everyone gets his own email address, for example MacScripter@funske.com.
When I want to reply to an email, or sent a new email, I want the sender to be email@example.com.
And instead of xxxx it should have the name of the company I’m sending to.
This works fine. Only I have to add the new sender email address to my account-preferences and save it, before I can use it.
I’m looking for a script to add the new sender address to my account-preferences and save this, so I can sent an email.
When I try this:
tell application "Mail" to set allEmailAddresses to email addresses of account "funske.com" choose from list allEmailAddresses with title "Choose the Mail account to use..." set theEmailAddress to result as string
I get all my email addresses that I can use with the account funske.com and can choose the one I want to use.
So it should be something like this:
tell application "Mail" to add "MacScripter@funske.com" to email addresses of account "funske.com"
Instead of “MacScripter@funske.com” I can use a variable that i can set before.
Does somebody can help me to add an new email address to my account-preferences
Browser: Safari 536.26.17
Operating System: Mac OS X (10.8)