use organisator email and event name on website

This commit is contained in:
2024-05-31 20:44:26 +02:00
parent 3782ef7282
commit b63b849218
5 changed files with 32 additions and 20 deletions

View File

@ -7,7 +7,7 @@ class Sendmail
{
global $_REQUEST;
/*
$smtp_host = 'bdp.mein-verein.online'; // SMTP-Host
$smtp_port = 25; // SMTP-Port
$smtp_username = 'noreply@mareike.sachsen.pfadfinden.de'; // SMTP-Benutzername
@ -25,7 +25,7 @@ class Sendmail
$phpmailer->setFrom('info@pfingstlager-24.de', "KoPfiLa '24 - Die Lagerleitung");
#$phpmailer->SMTPSecure = $smtp_secure;
} );
*/
$unfiltered_mails = explode(',', str_replace(';', ',', $_REQUEST['mail-to']));
$mail_to = array();
@ -62,7 +62,7 @@ class Sendmail
// Überprüfen, ob die E-Mail erfolgreich gesendet wurde
if ( $sent ) {
kompass_print_message_box(__('Mail sent to', BDP_LV_PLUGIN_SLUG) .': ' . $_REQUEST['mail-to']) ;
kompass_print_message_box(__('Mail successfully sent to', BDP_LV_PLUGIN_SLUG) .': ' . $_REQUEST['mail-to']) ;
} else {
kompass_print_message_box(__('Mail failed to sent to', BDP_LV_PLUGIN_SLUG) .': ' . $_REQUEST['mail-to'], 'error') ;
}