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

Gideon So gideonso at livingwater.org.hk
Tue Oct 30 07:56:51 CET 2012


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
>
>
>




More information about the TYPO3-project-formidable mailing list