LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / CronJob
Posted:  22 Dec 2012 15:32

Many congratulations on this magnificent work. This is the best php calendar. Thank You.
I have a problem and needed your help. When I receive email notifications, the format of email appears like this in outlook:

(some information from host and...)

<title>CALENDARIO PME On mailer</title>
<style type='text/css'>
body, p, table {background:#FFFFDD; color:#000099; font:12px arial, sans-serif;}
h5 {font-size:13px;}
td {vertical-align:top;}
<h5>Mudou em Sexta-Feira 21 Dezembro 2012</h5> <table><tr><td width="100px">Adicionado&nbsp;&nbsp;&nbsp;&nbsp;</td><td><span style="background-color:#FF0000;"><b>Jantar Natal Pme</b></span><br>
21-12-2012 @ 21.00 - 22.00<br>Local: Lisboa<br> # Notificação: 1 Dia(s) #<br>
Adicionado: 21-12-2012 (Paulo Rosa)<br>
<p><a href="">Abre o calendário</a></p>

Can you help me please?

Thank You.

Paulo Rosa
Posted:  22 Dec 2012 18:36
Hi Roel,

If I could offer for your consideration on cron jobs, set them to run from inside the program. With a single calendar it isn't a huge deal to set up a cron job or to run it manually but with multiple calendars requires multiple entries.

To automate, when calendars are new they may not get a lot of traffic, when the calendar is accessed it checks to see when the cron is to run and when last complete. Say it is daily and last cron was 9 days ago it runs.

Each time the calendar is accessed if it's less than a day since the cron was run it just doesn't run.

Just a thought.

"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at
Posted:  22 Dec 2012 20:53
Hi  Dan,

Thank's for your consideration, it's a great idea but the problem is that the mail format is not god, appears html code instead text.

Posted:  22 Dec 2012 22:14
Hi Paulo,

Outlook should be able to handle html formatted emails. Is there a setting in Outlook that is not allowing them which is why you are seeing the html code or some other issue?

This might be the answer to your problem.

"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at
Posted:  22 Dec 2012 23:18
Hi Dan,

I just't receive html emails from luxcal . I think that the problem is in code .


Posted:  23 Dec 2012 11:56   Last Edited By: Roel B.
Hi Paulo,
Long time ago someone had the same problem, and, if I remember correctly, it had something to do with the crlf (carriage return line feed) characters in the message header.

Because this forum strips off all backslashes, in the following line you should read a backslash for each ~ character used.
In the file common/toolbox.php on line 197 (starting with $headers = 'MIME-Version: 1.0') the email header is created. I suggest to replace "~n" (line feed) by "~r~n" (carriage return line feed).

I don't know if this works, but give it a try.

If it doesn't help then I suggest to have a careful look at the settings of your email client. The HTML code you've posted above looks fine to me and nobody else complained about email reminders.
Posted:  24 Dec 2012 03:19
Hi Roel,

Thank you very much
It's all right, your solutions resulted.

You did an excellent job.
This is actually the best calendar