Hello people!
After doing many tests, searching the forum and verifying every setting in Chronoforms, I can't find a solution.
I was using ChronoForms 3.1 RC1 with no problem and made changes on the fly in the email template by using OnSubmit Event before sending email.
This kind of code worked like a charm:
where ##myoldstring## was in my email template.
I installed the last version ChronoForms 3.1 RC5.5 and the replacement doesn't work at all.
I tried different things:
- echo something before sending email => OK
- replace string with something else => OK
- I even rebuilt the form from scratch
Every thing is ok (thanks message, email sent, database records, except the $emails[0]->template = str_replace(...). I can't modify email message on the fly as I did with success with RC1.
Is there something changed since the RC1? Does $emails[0]->template still work?
Thanks a lot for your answers if any.
My installation:
Joomla 1.5.20
PHP 5.2.13
MySql Server:5.0.90
Chronoforms:3.1 RC5.5 <- current version downloaded from Chronoengine website
Chronoforms content plugin: 3.1 RC5.2 <- current version downloaded from Chronoengine website
Regards
Shemzone
After doing many tests, searching the forum and verifying every setting in Chronoforms, I can't find a solution.
I was using ChronoForms 3.1 RC1 with no problem and made changes on the fly in the email template by using OnSubmit Event before sending email.
This kind of code worked like a charm:
$emails[0]->template = str_replace('##myoldstring##','my new string',$emails[0]->template);
where ##myoldstring## was in my email template.
I installed the last version ChronoForms 3.1 RC5.5 and the replacement doesn't work at all.
I tried different things:
- echo something before sending email => OK
- replace string with something else => OK
- I even rebuilt the form from scratch
Every thing is ok (thanks message, email sent, database records, except the $emails[0]->template = str_replace(...). I can't modify email message on the fly as I did with success with RC1.
Is there something changed since the RC1? Does $emails[0]->template still work?
Thanks a lot for your answers if any.
My installation:
Joomla 1.5.20
PHP 5.2.13
MySql Server:5.0.90
Chronoforms:3.1 RC5.5 <- current version downloaded from Chronoengine website
Chronoforms content plugin: 3.1 RC5.2 <- current version downloaded from Chronoengine website
Regards
Shemzone