I've a cronjob like this:

```
MAILTO=mymail@mydomain.com
30 00 * * * root /run/this/script.sh

```

is there a way to tell cron to send mail to different mail addresses based on exit code? I mean, can cron send an email to allok@mydomain.com in case script.sh return 0 or send to error@mydomain.com in case something gone wrong? Or I have to do it in a wrapper script?