Chronoforms has a nice email template designer. Are there any instructions or examples in the forums that would help me use the Chronoforms email templates from my own php code. For example, our software has a built in registration and activation (not web based) and after activation an email is sent from the system. I'd like to be able to use an email template from one of the Chronoforms forms to make it easier to edit and change those emails.
Forums
Using Email Templates from Other PHP code
Hi enounce,
The Chronoforms template is a simple table. You can copy it either by using the view html button in the Email template editor or by sending your self an email and then using View Source.
Bob
The Chronoforms template is a simple table. You can copy it either by using the view html button in the Email template editor or by sending your self an email and then using View Source.
Bob
Hi enounce,
The Chronoforms template is a simple table. You can copy it either by using the view html button in the Email template editor or by sending your self an email and then using View Source.
Bob
Thanks Bob, I guess what I meant was more using the email template directly from PHP the way ChronoForms does. I did a little digging around and came up with something like the following. I haven't tested this yet so I don't know if it will actually work but it seems like it should. This would be a nice additional software package that you could carve out of ChronoContact. A Email Template SDK type thing for Joomla where custom modules and components could use templates created with your email editor.
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'chronoform.php');
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'mails.php');
$MyForm =& CFChronoForm::getInstance('MyCustomEmails');
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
// Get the Emails We want to use this time
$emails[] = $MyFormEmails->emails[0];
$emails[] = $MyFormEmails->emails[2];
// Send email
$emails_result = $MyFormEmails->sendEmails($MyForm, $emails, $OurValues);
Hi enounce,
Yes I misunderstood - sounds possible, perhaps Max will pick this up when he has a moment.
Bob
Yes I misunderstood - sounds possible, perhaps Max will pick this up when he has a moment.
Bob
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
This does not work.Please fix that >>>>>>>
This topic is locked and no more replies can be posted.