I've been using this component on Joomla 1.x now for quite some time and it's been working great. I have a new 1.5 project and I need a form that will send a thank you email to the user once they have filled out the form, as well as the normal email that the admin gets. I've been using the following code in the OnSubmit After area in Joomla 1.x and it works fine:
- Code: Select all
<?php
$recipient = $_POST['email'];
$html_message = "Message Here";
$subject = " Subject Here";
mosMail($from, $fromname, $recipient, $subject, $html_message, true, NULL, NULL, NULL, NULL, NULL );
?>
However in Joomla 1.5 I get the following Error when using this code:
Fatal error: Call to undefined function: mosmail() in /homepages/17/d204522867/htdocs/components/com_chronocontact/chronocontact.php(562) : eval()'d code on line 5
Can anyone help me figure out what I need to change to get this working again?
Thanks!
