set theMessage to make new outgoing message with properties {account:"home", visible:true, subject:"Sample Subject", content:"hello" & return & return}
Why doesn't the message have the correct account assigned?
In Mail, I don't think the account is a property of a message, I think you want to set the sender.
Try this:
tell application "Mail" tell (account 1 whose full name is "Hello") set senderName to full name set senderEmail to email addresses set senderEmail to item 1 of senderEmail set mySender to senderName & " <" & senderEmail & ">" end tell set theMessage to make new outgoing message with properties {sender:mySender, visible:true, subject:"Sample Subject", content:"hello" & return & return} end tell
HTH,
ES =
|