hi
I am using up-to-date Chronoforms and Acajoom News.
I need two things:
1. An email to the person that just filled the form with some additional informations (autoresponder)
2. Exporting two fields (name and email) to acajoom - I don't know if it's possible?
I don't know much about PHP, if there are ready solutions, please helpš
regards,
Hubert
Hi Hubert,
For the email you can setup an Email with a Dynamic To field and add the field name for the email field into the box.
For Acajoom, there are a couple of solutions in the forums here - please search on Acajoom.
Bob
hi Bob,
thanks for reply
I've found (almost) everything I need on the forum.
I've put in onSubmit box:
<?php
$from = $replyto_email ="my@adress.com";
$fromname = $replyto_name = "My name";
$recipient = $_POST['text_8'];
$subject = "My topic";
$html_message = "<p>My text</p>";
$ccemails = $bccemails = $attachments = "";
mosMail($from, $fromname, $recipient, $subject, $html_message, true, $ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );
?>
<?php
$email = JRequest::getVar('text_8', '', 'post');
$name = JRequest::getVar('text_0', '', 'post');
$MyForm->setFormData('redirecturl', "index.php?option=com_acajoom&act=subscribe&name=$name&email=$email&listid=".implode(",", JRequest::getVar('strRequestList')));
?>
This code:
1. sends email to customer
2. adds him to my newsletter
But the only thing that need to be changed is, that after submitting the form, browser redirects me to some acajoom's page. I need it to redirect me to chronoforms's redirect url.
How can I do that??
cheers!
Hubert
solved!
you need to add &redirectlink=http://yournewpage.com to the code
so it looks like that
<?php
$email = JRequest::getVar('text_8', '', 'post');
$name = JRequest::getVar('text_0', '', 'post');
$MyForm->setFormData('redirecturl', "index.php?option=com_acajoom&act=subscribe&name=$name&email=$email&redirectlink=http://yournewpage.com&listid=".implode(",", JRequest::getVar('strRequestList')));
?>
cheers!
Hubert
Hi Hubert,
This will work OK, the CURL plugin solution is perhaps a little more elegant as there is no need for the user to go to the AcaJoom page.
Bob
Is it possible to send an email to the person who submitted the form. I tried the dynamic to and added {name of email field} but it does not work.
ok sorry i got it working, i dint need the brackets, man i love this component best $25 dollars ever spent on joomla! thanks again.
Hey there
I don't know what am I doing wrong:
1. I select a form and go to CURL configuration
2. I need to fields - text_0 (name) and text_8 (email)
3. I call them the same so it looks like 'text_0' field text_0 , 'text_8' field text_8
4. The target URL is index.php?option=com_acajoom&act=subscribe&name=text_0&email=text_8&listid=1
5. The CURL Plugin in form's configuration is enabled (green bar) and first on the list
and the form works, two mails are sent, but the curl is just not working..
oh, so I did it all way wrong...
big thank for help!
Hi! It seems that Acajoom 5.1.5 needs &passwordA=Pas$w0rd to the url for this to work.
How does I set Chronoform Curl to do that?
Kind regards
Thomas