我正在尝试通过AppleScript通过默认邮件客户端发送样式化的文本电子邮件。似乎新版本的OSX无法识别其中设置的HTML内容。是否有任何解决方法适用于10.11(El Capitan)?
解决方案在10.10(Yosemite)上运作得非常好。
解决方案在10.10(Yosemite)上运作得非常好。
tell application "Mail"
set theMessage to make new outgoing message with properties {subject:textSubject, visible:false}
tell theMessage
set html content to textBody
repeat with i from 1 to count toNameList
make new to recipient at theMessage with properties {name:item i of toNameList, address:item i of toAddressList}
end repeat
send
end tell
end tell