• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why can't I set sender in new outgoing Apple Mail message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't I set sender in new outgoing Apple Mail message?


  • Subject: Re: Why can't I set sender in new outgoing Apple Mail message?
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 01 May 2015 12:33:34 +0200


Le 01/05/2015 à 04:31, Christopher Stone <email@hidden> a écrit :

On Apr 30, 2015, at 14:28, Michael Grant <email@hidden> wrote:
Any idea why the code below isn't working? The message is created but the sender is not set.
______________________________________________________________________

Hey Michael,

tell application "Mail"
  set outGoingMsg to make new outgoing message with properties {sender:"email@hidden"}
  set visible of outGoingMsg to true
end tell

The sender has to be from an existing account.  You cannot set it arbitrarily.

I made tests with the exact mail addresses of my accounts.
No luck, I tried with five different ones and the messages were always created with the sender address used for this list.


Yvan KOENIG (VALLAURIS, France) vendredi 1 mai 2015 12:33:15



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why can't I set sender in new outgoing Apple Mail message?
      • From: Christopher Stone <email@hidden>
  • Next by Date: Re: Scripting Mail: Body content as plain text with quotes
  • Next by thread: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Index(es):
    • Date
    • Thread