AppleScript发送邮件
2017-11-15 14:15
381 查看
tell application "Finder" set theFile to ":Users:yueyansheng:Desktop:sadasd.pptx" as alias set fileName to name of theFile end tell set theSubject to fileName set theBody to "Hello sir. Here is my " & fileName set theAddress to "Some Email" set theAttachment to theFile set theSender to "Some Sender" tell application "Mail" set theNewMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return, visible:true} tell theNewMessage set visibile to true set sender to theSender make new to recipient at end of to recipients with properties {address:theAddress} try make new attachment with properties {file name:theAttachment} at after the last word of the last paragraph set message_attachment to 0 log "message_attachment = " & message_attachment on error set message_attachment to 1 end try #tell content # make new attachment with properties {file name:theAttachment, path:fileList} #end tell #send end tell activate end tell
相关文章推荐
- appleScript初涉实现邮件发送初涉实现邮件发送
- perl发送邮件
- .net 2.0 下发送邮件的方式。
- 公司往来邮件发送礼仪
- Python使用SMTP发送邮件[HTML格式、送带附件]
- Python如何发送邮件给多人
- JSP与JavaMail(4)---发送HTML格式的邮件
- Linux下使用sendEmail发送带附件的邮件
- 使用需要验证的邮件服务器发送邮件的方法
- c# 发送邮件
- python查询数据库并发送邮件
- 使用expect自动发送邮件的脚本
- .Net锦囊-C#,.Net发送邮件三种方法…
- 在 CentOS 7 中使用 Sendmail 通过 PHP 发送邮件
- 基于maven发送邮件系列(5)----基于quartz定时的另一种方式:配置文件
- 命令行邮件发送工具
- javamail发送邮件
- 最完整的自动化测试流程:Python编写执行测试用例及定时自动发送最新测试报告邮件
- 被一贴,一个以前写的邮件发送的小类库。记住了,不是内裤
- thinkphp实现发送邮件密码找回功能实例