How to send a html file from crontab?
I have set one of my cronjob to find big files everyday. I have formatted the output of my cronjob as html log file. I need to forward the output html file to my mail
If I use the following syntax 0 8 * * 1-5 /template.html | mail me@example.com I get the output with all html tags. I want to see it as a html page without the tags. Sorry my prev question was not clear Could someone help me? |
the html way? what's that mean? a text file is just text, you'd need to somehow rewrite it yourself if you want html.
|
Well, an html file is just text.. to be fair. If I am reading it correctly, you will need to set the right headers in your message.
A few seconds with google gave me this: Quote:
|
Also check out Nail, a replacement for mailx which I use as it has a lot more features.
|
All times are GMT -5. The time now is 10:12 PM. |