Cronjob multiple recipients

wavoe

Verified User
Joined
Nov 21, 2007
Messages
83
Location
Belgium
Today we can send all cron output to a specified e-mail or DA username.
But I received the question if it's possible to have the output send to multiple recipients.
When I was looking a bit around I modified the MAILTO="email" in crontab itself by adding a comma and a second recipient which is working for me.
When I try to add the multiple recipients via the cronjob page itself it says that it's an invalid email address.

I'm running a CentOS 7 where I could not find this in the crontab manual, but I could find it here: https://www.freebsd.org/cgi/man.cgi?crontab(5)
MAILTO may also be used to direct mail to multiple recipients by separating recipient users with a comma.
 
Oh that's interesting. Not that I need it directly but in some situations it might come in handy.
Thank you for sharing!
 
FYI, for 1.57.6:
https://directadmin.com/features.php?id=2433

Learned multiple MAILTO entries can be spread out throughout the crontab, where it overrides the last, allowing different crons to have emails sent to different locations.
Considering this as a feature request to be implemented in the future.

John

Just downloaded the Pre-release Binaries and tested this, and it's working as expected now.
 
Back
Top