Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do?
Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do?
what command are you using to send email ?
you sending html or plain text file ?
mail -s "email id" - This is the command i used to send email from crontab.
output is a plain text...
example:
03-28 23:56:01,ERROR,.. some long text............
03-28 23:59:01,ERROR,.. some long text............
ideally, the command should be
mail -s "Subject" email-address < file_name
did u try using mailx or sendmail ?
If you are looking for a mail with font and other style, you will have to send in html format with the proper style tags. By default mail -s will send the content as normal text.
Mails reaching junk email folder is your e-mail client configuration. You will have to check the client which is recieving the mails instead the script