Newby Autoresponder PHP question

fleen 03 Jan, 2010
Hello,

I am a newby and I have set up cronoforms successfully after many hours trial and error by following the tutorials.

So my database/form has 5 fields:
text_0 = name
text_1 = username
text_2 = email
text_3 = pass
text_5 = confirm pass

Using your example found in a posting in this forum:
<?php

mosMail($from, $fromname, $recipient, $subject, $html_message, true,$ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );
?>

If I enter this exactly as it is into the box 'On Submit code - before sending email:' I get the following message:

Fatal error: Call to undefined function mosMail() in /home2/jacquem8/public_html/crfdn/joomla/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 3

I tried this too...

<?php

mosMail($text_0, $text_1 );
?>


Which did not work either.

How can I learn how to do this?

Thank you in advance.
GreyHead 03 Jan, 2010
Hi fleen,

'mosMail' is a Joomla 1.0 function so you must have found it from an old post; it won't work with Joomla 1.5

What exactly do you want your form to do?

Bob
simovina 01 Jul, 2011
Hi, what is exactly code to be copied into on submit filed to get auto responder work?
Thanks.
GreyHead 02 Jul, 2011
Hi simovina,

No code needs to be copied. What are you trying to do and which which version of ChronoForms?

Bob
simovina 02 Jul, 2011
Hi Bob,
I'm trying to setup autoresponder, I did search topics over here, I create 2 email fields into forms setup but don't manage to have one mail for me and another for the user/sender as confirmation. I opened your tutorial regarding mail creation but it's not explained over there.
Thanks.
GreyHead 02 Jul, 2011
Hi simovina,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

Bob
simovina 02 Jul, 2011
Hi, it's latest version for j1.5 series, V 3.2 09 Nov 2010.
If there is link where it's explained easiest way to get autoreponder as thank you massage to the user sending from the form would be ok, since what I was reading I'm bit confused, shall I add on submit functions that grab data from the form, shall I make email fields or another form with separate template?
Thanks.
GreyHead 02 Jul, 2011
Hi simovina,

Add a new Email Setup, drag in Dynamic To, Subject, From Name & From Email elements.

In the Dynamic To box put the name of the form input which will contain the users email address without quotes or brackets e.g. email

The Email setup should then change color from red to green.

Click the coloured border then set Enabled to Yes in the Properties box.

Set Senf Emails to Yes on the form General tab.

Save your form and test.

Bob
simovina 09 Jul, 2011
Hi, yes ok.
It works like that, just is there a way for users to get different text then the my email template? To separate templates, one for autorespodner dynamic-to email, and one that's regular email template with the data grabbed from the form?
I think I was reading on forum to add some extra code into on submit after sending a form but not sure.
Thanks.
GreyHead 10 Jul, 2011
Hi simovina,

Just drag in a second email action and set it up differently.

Bob
simovina 10 Jul, 2011

Just drag in a second email action and set it up differently.


Hi, sorry, I'm not sure I understood, where to drag what? I used chrono for a long time but don't get this, sorry, might be my error but if you can help it would be fine, thank you.
GreyHead 10 Jul, 2011
Hi simovina,

I'm sorry; you are using version 3.2 and that's in v4. Just go to the Email Setup tab, click the envelope icon and create a second email setup.


Bob
simovina 11 Jul, 2011
Ah ok, thank you.
This topic is locked and no more replies can be posted.