简体   繁体   中英

How to send an email through AppleScript without the Mail app

I need to create an AppleScript program that will send an email no matter what. That means that the Apple Mail app is out of question, because some people do not have Mail set up. I thought that one way would be to send the email through Terminal, but I have no idea how. I need some way to send an email through AppleScript without the Mail app.

Here you can find a python script to send email and there's applescript code on the page to show how you can call the python script from applescript. Note that you have to supply smtp information to the script, which is essentially the information that you use to setup Mail.app.

So if you wanted a "no matter what" type of solution you would have to include your own smtp info in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM