CalcBuilder Forum

Send admin email on Calculate

Usuario ritchg 2011-12-22 18:40:40

Is there a way to have Calc send an email with results when the user clicks the calculate button?
Thanx.

Moonsoft support 2011-12-22 19:53:34

Hello,

Yes, you can write custom code in backend in order to send email. Write it at 'code' in your calculator. All valid php code at this section is executed when pressing button. Component is in joomla, so you can use Joomla classes to send the email or use php classes directly (Google it, there´s a lot of explaining pages).
Here you have two links, one for joomla and one for PHP:

http://docs.joomla.org/How_to_send_email_from_components

http://email.about.com/od/emailprogrammingtips/qt/How_to_Send_Email_from_a_PHP_Script.htm

Hope this helps,

Moonsoft Team

Usuario ritchg 2011-12-23 13:40:36

Thanks, I will look at the examples.

...
List Manager

Build different lists for your site

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!