get cron to email mail app in high sierra

Hi


I've set up a task in cron, prefixing the command with MAILTO=myname@icloud.com

the task runs fine, but no email is received. What am I doing wrong?


thanks all

MacBook Pro

Posted on Jun 7, 2018 12:56 AM

Reply
2 replies

Jun 7, 2018 2:25 AM in response to essouira

You first need to make sure that you are able to send mail from Terminal.


This requires setting a number of things to ensure that the mail command will be able to send mail outside of your machine.


I have found a few sets of instructions on how to do that, but I do not have the time go through it.

Search for "send mail from Terminal mac" or similar.


Alternatively, a simpler solution may be to incorporate the sending of mail into your script.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

get cron to email mail app in high sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.