[TYPO3-formidable] How to send an email to user after submit a reg form??
Michael Paffrath
michael.paffrath at gmail.com
Tue Oct 30 08:24:32 CET 2012
Hi Gideon,
that depends on your form.
With my form the recipient would be $aFormData['email'] as $aFormData['firstname'] holds the firstname of the user.
Cheers,
Michael
On Oct 30, 2012, at 8:05 AM, Gideon So wrote:
> Hi Michael,
>
> I see. I can use some real values to replace them right?? If I have to send an email to the user who has just register an account, the recipient should be $aFormData["firstname"], right??
>
> Sorry for all these newbie questions.
>
> Gideon So
>
> 於 2012年10月30日 星期二 02:58 下午, Michael Paffrath 提到:
>> Hi Gideon,
>>
>> no, they are just made up.
>> Field variables from the form are in $aFormData (e.g. $aFormData["firstname"])
>>
>> Cheers,
>> Michael
>>
>> On Oct 30, 2012, at 7:56 AM, Gideon So wrote:
>>
>>> Hi Michael,
>>>
>>> Thanks for your prompt reply. Just a question. All the variables (e.g. $recipient, $subject) are fields in the form / DB table??
>>>
>>> Gideon So
>>>
>>> 於 2012年10月30日 星期二 02:45 下午, Michael Paffrath 提到:
>>>> Hi Gideon,
>>>>
>>>> you can use an actionlet.
>>>> This is how my default contact form actionlet(s) look like:
>>>> <control>
>>>> <actionlets>
>>>> <actionlet:USEROBJ>
>>>> <userobj>
>>>> <php><![CDATA[/*<?php*/
>>>> $aFormData = $this->oDataHandler->_getFormData();
>>>> $this->sendMail(
>>>> $recipient,
>>>> $aFormData["firstname"]." ".$aFormData["lastname"]." (".$aFormData["email"].") left the following message: <br/>".nl2br($aFormData["message"]),
>>>> $subject,
>>>> $senderemail,
>>>> $sendername,
>>>> $replytoemail,
>>>> $replytoname
>>>> );
>>>> /*?>*/]]></php>
>>>> </userobj>
>>>> </actionlet:USEROBJ>
>>>> <actionlet:REDIRECT>
>>>> <pageid>113</pageid>
>>>> </actionlet:REDIRECT>
>>>> </actionlets>
>>>> </control>
>>>>
>>>> It sends a mail after verification and then redirects to another page.
>>>>
>>>> Hope that helps,
>>>> Michael
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> TYPO3-project-formidable mailing list
>>> TYPO3-project-formidable at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
>>
>> --
>> Michael Paffrath Webdevelopment
>> Timorplein 30
>> 1094CC Amsterdam
>> +31 61 22 97 498
>> michael at michaelpaffrath.com
>> http://www.michaelpaffrath.com
>>
>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-formidable
--
Michael Paffrath Webdevelopment
Timorplein 30
1094CC Amsterdam
+31 61 22 97 498
michael at michaelpaffrath.com
http://www.michaelpaffrath.com
More information about the TYPO3-project-formidable
mailing list