Sending 2 different emails after form submit

mariokrupik 17 Apr, 2008
Hi,

When a customer fills out my Form and presses submit, I would like to recieve the form content with all informations to get sent to my email, and a 2nd email with only some basic Informations from the submitted form sent to the customers email.

Is this possible?

Mario
GreyHead 17 Apr, 2008
Hi Mario,

Yes sure. Keep the main ChronoForms mail to send the results to the webadmin, then put some code in the 'OnSubmit after email' box to send a second email to the customer. The code will be something like this (for Joomla 1.0.x):
<?php
$recipient = $_POST['email'];
$subject = "Our Site - thanks";
$html_message = "
<p>Thank you for submitting our form.</p>
<p>Webadmin</p>";
mosMail($from, $fromname, $recipient, $subject, $html_message, true );
echo $html_message;
?>
This version also shows the same message on the form'Thank You' page.

Bob

PS Joomla 1.5 code is slightly different I think.
This topic is locked and no more replies can be posted.