Buy Now
Sign in

How to make notifications by email

tempus , January 02 at 10:36
Hi GH, Max and community

I am making a form with the statistics by users on the load event and personalized emails for each user on the submit event.

Using custom query on load I made the table with info by each user (name, email, other users needed info).

Please help to make personalized emails to each of them and send.

P.S. I have tried to make such emails with this solution
or Event Switcher but nothing does not work.
Hi tempus,

If you have the data then you can use PHP to print any info in the email body:
<?php echo $form->data["field_name"]; ?>

It's more convenient to use v6 though since this is a new form and both versions can be installed on the same website!

Best regards
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
Thank you, Max!

One more question left. How to make many personalized e-mails to the users, who are in my statistics table?

I have an example from the forum, but my hosting provider have restricted php mail() function.
Is it possible by the custom code to call the specified e-mail event in my form?

$results = array();
foreach ( $form->data['coles'] as $v ) {
$to = $v[co_m_director];
$subject = "My subject";
$txt = "Hello world!";
$headers = "From:" . "\r\n";
Hi tempus,

You can do this with Custom Code but note that it will still use whatever PHP mailer library is enabled on your site so may still be restricted.

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much