mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Add a setting to send subscription reminder to a cc address
This commit is contained in:
parent
53f377fd60
commit
f929aee3af
|
|
@ -63,6 +63,7 @@ $constantes = array(
|
|||
'ADHERENT_EMAIL_TEMPLATE_CANCELATION' =>array('type'=>'emailtemplate:member'),
|
||||
'ADHERENT_EMAIL_TEMPLATE_EXCLUSION' =>array('type'=>'emailtemplate:member'),
|
||||
'ADHERENT_MAIL_FROM' =>array('type'=>'string'),
|
||||
'ADHERENT_CC_MAIL_FROM' =>array('type'=>'string'),
|
||||
'ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT' =>array('type'=>'string'),
|
||||
'ADHERENT_AUTOREGISTER_NOTIF_MAIL' =>array('type'=>'html', 'tooltip'=>$helptext)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -3146,12 +3146,13 @@ class Adherent extends CommonObject
|
|||
$msg = make_substitutions($arraydefaultmessage->content, $substitutionarray, $outputlangs);
|
||||
$from = getDolGlobalString('ADHERENT_MAIL_FROM');
|
||||
$to = $adherent->email;
|
||||
$cc = getDolGlobalString('ADHERENT_CC_MAIL_FROM');
|
||||
|
||||
$trackid = 'mem'.$adherent->id;
|
||||
$moreinheader = 'X-Dolibarr-Info: sendReminderForExpiredSubscription'."\r\n";
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||
$cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), '', '', 0, 1, '', '', $trackid, $moreinheader);
|
||||
$cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), $cc, '', 0, 1, '', '', $trackid, $moreinheader);
|
||||
$result = $cmail->sendfile();
|
||||
if (!$result) {
|
||||
$error++;
|
||||
|
|
|
|||
|
|
@ -1766,7 +1766,7 @@ function form_constantes($tableau, $strictw3c = 0, $helptext = '', $text = 'Valu
|
|||
}
|
||||
print '</div>';
|
||||
//print 'http://lists.example.com/cgi-bin/mailman/admin/%LISTE%/members/remove?adminpw=%MAILMAN_ADMINPW%&unsubscribees=%EMAIL%';
|
||||
} elseif ($const == 'ADHERENT_MAIL_FROM') {
|
||||
} elseif (in_array($const, ['ADHERENT_MAIL_FROM', 'ADHERENT_CC_MAIL_FROM'])) {
|
||||
print ' '.img_help(1, $langs->trans("EMailHelpMsgSPFDKIM"));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ DescADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION=Email template to use to send emai
|
|||
DescADHERENT_EMAIL_TEMPLATE_CANCELATION=Email template to use to send email to a member on member cancelation
|
||||
DescADHERENT_EMAIL_TEMPLATE_EXCLUSION=Email template to use to send email to a member on member exclusion
|
||||
DescADHERENT_MAIL_FROM=Sender Email for automatic emails
|
||||
DescADHERENT_CC_MAIL_FROM=Send automatic email copy to
|
||||
DescADHERENT_ETIQUETTE_TYPE=Format of labels page
|
||||
DescADHERENT_ETIQUETTE_TEXT=Text printed on member address sheets
|
||||
DescADHERENT_CARD_TYPE=Format of cards page
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ DescADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION=Modèle d'email électronique à u
|
|||
DescADHERENT_EMAIL_TEMPLATE_CANCELATION=Modèle d'email utilisé pour envoyer un email à un adhérent lors de l'annulation d'adhésion
|
||||
DescADHERENT_EMAIL_TEMPLATE_EXCLUSION=Modèle de courriel à utiliser pour envoyer un courriel à un adhérent lors de son exclusion
|
||||
DescADHERENT_MAIL_FROM=Email émetteur pour les mails automatiques
|
||||
DescADHERENT_CC_MAIL_FROM=Email en copie des mails automatiques
|
||||
DescADHERENT_ETIQUETTE_TYPE=Format pages étiquettes
|
||||
DescADHERENT_ETIQUETTE_TEXT=Texte imprimé sur les planches d'adresses adhérent
|
||||
DescADHERENT_CARD_TYPE=Format pages cartes d'adhérent
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user