Jump to content

Cron job email shouldn't show HTML


Recommended Posts

Hi,

 

In my gmail inbox I'm receiving emails like this:

 

<b>POP Import Log</b><br>Date: 24/04/2012 03:50:01<hr>Host: pop.gmail.com<br>Email: support@mycompany.com.au<br>Email Count: 0<hr>

 

Note that the HTML tags are displaying in the message body exactly as per the above. Which tells me that the corresponding cron job (*/5 * * * * php -q /home/username/public_html/whmcs/pipe/pop.php) isn't sending proper HTML headers so that gmail knows how to properly display the message as HTML:

 

Subject: Cron <itomiccl@pluto> php -q /home/itomiccl/public_html/pipe/pop.php

Content-Type: text/plain; charset=UTF-8

 

OK, so this is just a cosmetic issue, but it look very shabby and probably can be easily corrected?

 

Thanks,

 

Ross

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated