New: For paypal payment confirmation, send email ok only if payment is

confirmed. Otherwise send ko email.
This commit is contained in:
Laurent Destailleur 2014-01-07 17:35:33 +01:00
parent 58bc3b1457
commit bc51065ff1

View File

@ -170,7 +170,6 @@ if ($PAYPALTOKEN)
// Send an email
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
{
//$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
$from=$conf->global->MAILING_EMAIL_FROM;
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
@ -211,7 +210,6 @@ if ($PAYPALTOKEN)
// Send an email
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
{
//$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
$from=$conf->global->MAILING_EMAIL_FROM;
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';