CalcBuilder Forum

Send admin email on Calculate

User 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

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

Thanks, I will look at the examples.

...
CalcBuilder

Create dynamic calculators

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!