Wednesday 28 April 2010 5:40:11 am
Hi. I have already done this. I actually use an extension called wrap operator. This allows you to register any php functions you need access to, such as the mail funciton. In an include template which i have defined i include the code like this : {def $mailreturn = wrap_php_func('mail', array($to,$subject,$message,$headers))} The problem was that i needed to send different email content to the user and to the administration per collected info. This approach allows me to send the mail from the template whenever a user has submitted the form. - Lars Eirik
|