• 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: Axel Luttgens <email@hidden>
  • Date: Fri, 01 May 2015 17:45:37 +0200

> Le 30 avr. 2015 à 21:28, Michael Grant a écrit :
>
> Any idea why the code below isn't working? The message is created but the sender is not set.
> […]
> tell application "Mail"
> 	set theOutMessage to make new outgoing message with properties {sender:"email@hidden"}
> end tell

Hello Michael,

I don’t remember whether this was already the case with earlier versions but here, with 10.10.3, I have to set the sender by making use of a "full" email address (i.e., based on an account’s full name in addition to one of its email addresses):

	tell application "Mail"
		tell (make new outgoing message)
			set visible to true
			set sender to "Axel Luttgens <email@hidden>"
		end tell
	end tell

HTH,
Axel


 _______________________________________________
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


  • Prev by Date: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Next by Date: ql-manage script not working
  • Previous by thread: Re: Why can't I set sender in new outgoing Apple Mail message?
  • Next by thread: Re: Scripting Mail: Body content as plain text with quotes
  • Index(es):
    • Date
    • Thread