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
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
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.
if anyone has clear instructions about setting up mail in terminal for high sierra, I'd be grateful. Nothing I've found online is at all clear
get cron to email mail app in high sierra