New: For paypal payment confirmation, send email ok only if payment is
confirmed. Otherwise send ko email.
This commit is contained in:
parent
58bc3b1457
commit
bc51065ff1
@ -170,7 +170,6 @@ if ($PAYPALTOKEN)
|
|||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
||||||
{
|
{
|
||||||
//$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
|
||||||
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||||
@ -211,7 +210,6 @@ if ($PAYPALTOKEN)
|
|||||||
// Send an email
|
// Send an email
|
||||||
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
if (! empty($conf->global->PAYPAL_PAYONLINE_SENDEMAIL))
|
||||||
{
|
{
|
||||||
//$sendto=$conf->global->MEMBER_PAYONLINE_SENDEMAIL;
|
|
||||||
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
$sendto=$conf->global->PAYPAL_PAYONLINE_SENDEMAIL;
|
||||||
$from=$conf->global->MAILING_EMAIL_FROM;
|
$from=$conf->global->MAILING_EMAIL_FROM;
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user