Forum
Calc Builder Support
Calc Builder supportForums
No se permite escribir sin estar logado. Por favor, login
Re: Possibility to add a REF#? 16.03.2017 09:59
Hi,
you could add any custom reference at the content of the email, just creating a new result (with a random number, a number based on actual date, getting the number of calculations launched...), and include it same that your other inputs/outputs. At this time the subject doesn't allow to introduce variables, so you would have to introduce a little tweak to the email function in order to get that purpouse. It's located here:
JOOMLA\components\com_calcbuilder\models\calcbuilder.php
You can search for the email function
function getEnvioWrapper($email,$mail_content,$subject,$attach=null,$cc=null,$bcc=null){
and add any content to the subject, just below this line, for ex, adding REF#: + a random number:
$subject=$subject." REF#:".rand();
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
you could add any custom reference at the content of the email, just creating a new result (with a random number, a number based on actual date, getting the number of calculations launched...), and include it same that your other inputs/outputs. At this time the subject doesn't allow to introduce variables, so you would have to introduce a little tweak to the email function in order to get that purpouse. It's located here:
JOOMLA\components\com_calcbuilder\models\calcbuilder.php
You can search for the email function
function getEnvioWrapper($email,$mail_content,$subject,$attach=null,$cc=null,$bcc=null){
and add any content to the subject, just below this line, for ex, adding REF#: + a random number:
$subject=$subject." REF#:".rand();
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
Re: Possibility to add a REF#? 20.03.2017 20:22
Hi,
yes, you can use any valid php code for that purpouse, your example code seems ok. Additionallly you can check the date function official doc in order to find out different formats you can use to print your timestamp here:
http://php.net/manual/en/function.date.php
Hope this helps, regards
Moonsoft Team
www.moonsoft.es
yes, you can use any valid php code for that purpouse, your example code seems ok. Additionallly you can check the date function official doc in order to find out different formats you can use to print your timestamp here:
http://php.net/manual/en/function.date.php
Hope this helps, regards
Moonsoft Team
www.moonsoft.es