forked from tohe/wmdeit_kaform
Allow to configure CC mailing
This commit is contained in:
parent
6ad54e1a3a
commit
5fe39a1cbf
|
@ -1,13 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
$CONVERT_CMD = "/usr/local/bin/pdftk";
|
$CONVERT_CMD = "/usr/local/bin/pdftk";
|
||||||
|
|
||||||
$mailHost = 'mailserver.example.com'; // Specify main and backup server
|
$mailHost = 'mailserver.example.com'; // Specify main and backup server
|
||||||
$mailPort = 587; // Set the SMTP port
|
$mailPort = 587; // Set the SMTP port
|
||||||
$mailSMTPAuth = true; // Enable SMTP authentication
|
$mailSMTPAuth = true; // Enable SMTP authentication
|
||||||
$mailUsername = 'mailuser'; // SMTP username
|
$mailUsername = 'mailuser'; // SMTP username
|
||||||
$mailPassword = 'mailpasswd'; // SMTP password
|
$mailPassword = 'mailpasswd'; // SMTP password
|
||||||
$mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
|
$mailSMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
|
||||||
|
|
||||||
$mailDest = "someone@example.com";
|
$mailDest = "someone@example.com";
|
||||||
|
$mailDestCC = "someone_cc@example.com"; // leave empty if no CC is required
|
||||||
$mailFrom = "someone@example.com";
|
$mailFrom = "someone@example.com";
|
||||||
|
|
||||||
|
|
|
@ -416,6 +416,9 @@ if ($_POST['sendmail']=='yes'){
|
||||||
$mail->Subject = $subj;
|
$mail->Subject = $subj;
|
||||||
$mail->Body = "Kostenerstattungsantrag ...";
|
$mail->Body = "Kostenerstattungsantrag ...";
|
||||||
$mail->AddAddress($mailDest);
|
$mail->AddAddress($mailDest);
|
||||||
|
if ($mailDestCC) {
|
||||||
|
$mail->AddCC($mailDestCC);
|
||||||
|
}
|
||||||
$mail->AddAttachment( $file , 'antrag.pdf' );
|
$mail->AddAttachment( $file , 'antrag.pdf' );
|
||||||
|
|
||||||
$mail->Host = $mailHost; // Specify main and backup server
|
$mail->Host = $mailHost; // Specify main and backup server
|
||||||
|
|
Loading…
Reference in New Issue