[TYPO3-formidable] How to send an email to user after submit a reg form??

Michael Paffrath michael.paffrath at gmail.com
Tue Oct 30 07:45:16 CET 2012


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



On Oct 30, 2012, at 2:52 AM, Gideon So wrote:

> Hi,
> 
> 	I made a registration form for user to register an account. How can I
> send a confirmation email to the user after the form is validated and
> submitted??
> 
> 	Any hints are welcome. Thanks.
> 
> Gideon So
> _______________________________________________
> 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