Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th April 2011, 09:29 AM
jay041111 Offline
Registered User
 
Join Date: Apr 2011
Posts: 1
windows_xp_2003ie
cron mail in HTML format. got lucky?

All my cron jobs are configured to email output to myemail@mydomain.com

Text content comes through, just fine. I have several cron jobs that output HMTL, however cron's output email displays the html tags as-is as text, instead of html. example: <br>

Anyone got lucky being able to send cron output emails in html format (either by configuring fedora or through command line)? help appreciated.

I have tried the following command lines in fedora crontab manager with no luck

TRY 1
CONTENT_TYPE=text/html /usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com

(cron executes, but sends email as a text email, not html email)

TRY 2
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' myemail@mydomain.com

(cron executes, but sends email as a text email, not html email)

TRY 3
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' -a 'Content-Type: text/html' myemail@mydomain.com

(cron executes, but does not send email)

TRY 4
/usr/bin/php /full/path/myphp.php | mail -s 'email subject' --append="Content-type: text/html" myemail@mydomain.com

(cron executes, but does not send email)
Reply With Quote
  #2  
Old 11th April 2011, 11:53 AM
weitjong's Avatar
weitjong Online
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 744
macosfirefox
Re: cron mail in HTML format. got lucky?

Have you tried to use the command in tandem with "uuencode"? I believe you have to encode the content using uuencode first, before piping it to mail(x).
__________________
YaoWT - Leave no window unbroken ^_^
Reply With Quote
Reply

Tags
cron, crontab, email, html, mail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pdf to html format satimis Using Fedora 3 8th November 2009 01:37 PM
Convert a plain Text into HTML format Nkunzis Programming & Packaging 5 14th December 2006 11:00 AM


Current GMT-time: 08:46 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat