Hanno Böck commited on 2024-03-07 12:35:36
Zeige 4 geänderte Dateien mit 8 Einfügungen und 8 Löschungen.
... | ... |
@@ -472,6 +472,6 @@ function handle_exception($e) |
472 | 472 |
print_r(serialize($_SERVER)); |
473 | 473 |
} else { |
474 | 474 |
$msg = "Exception caught:\n" . $e->getMessage() . "\n" . serialize($_POST) . "\n" . serialize($_SERVER); |
475 |
- mail(config("adminmail"), "Exception on configinterface", $msg); |
|
475 |
+ send_mail(config("adminmail"), "Exception on configinterface", $msg); |
|
476 | 476 |
} |
477 | 477 |
} |
... | ... |
@@ -287,8 +287,8 @@ Köchersberg 32, 71540 Murrhardt |
287 | 287 |
|
288 | 288 |
https://schokokeks.org |
289 | 289 |
'; |
290 |
- # send welcome message |
|
291 |
- mail($email, '=?UTF-8?Q?Best=C3=A4tigung_Ihrer_E-Mail-Adresse?=', $message, "X-schokokeks-org-message: verify\nFrom: " . config('company_name') . ' <' . config('adminmail') . ">\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\n"); |
|
290 |
+ // send welcome message |
|
291 |
+ send_mail($email, 'Bestätigung Ihrer E-Mail-Adresse', $message, "verify"); |
|
292 | 292 |
} |
293 | 293 |
|
294 | 294 |
function update_pending($contactid) |
... | ... |
@@ -419,10 +419,10 @@ Wussten Sie schon, dass Sie auf mehrere Arten Ihre E-Mails abrufen können? |
419 | 419 |
(Achten Sie bitte darauf, dass die Verschlüsselung mit SSL oder TLS |
420 | 420 |
aktiviert ist.) |
421 | 421 |
'; |
422 |
- # send welcome message |
|
423 |
- mail($emailaddr, 'Ihr neues Postfach ist bereit', $message, "X-schokokeks-org-message: welcome\nFrom: " . config('company_name') . ' <' . config('adminmail') . ">\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\n"); |
|
424 |
- # notify the vmail subsystem of this new account |
|
425 |
- #mail('vmail@'.config('vmail_server'), 'command', "user={$account['local']}\nhost={$domainname}", "X-schokokeks-org-message: command"); |
|
422 |
+ // send welcome message |
|
423 |
+ send_mail($emailaddr, 'Ihr neues Postfach ist bereit', $message, "welcome"); |
|
424 |
+ // notify the vmail subsystem of this new account |
|
425 |
+ //mail('vmail@'.config('vmail_server'), 'command', "user={$account['local']}\nhost={$domainname}", "X-schokokeks-org-message: command"); |
|
426 | 426 |
} |
427 | 427 |
|
428 | 428 |
// Clean up obsolete quota |
... | ... |
@@ -358,7 +358,7 @@ function make_webapp_vhost($id, $webapp) |
358 | 358 |
$webapp_name = $result->fetch(PDO::FETCH_OBJ)->displayname; |
359 | 359 |
logger(LOG_INFO, 'modules/vhosts/include/vhosts', 'vhosts', 'Setting up webapp ' . $webapp_name . ' on vhost #' . $id); |
360 | 360 |
db_query("REPLACE INTO vhosts.webapps (vhost, webapp) VALUES (?, ?)", [$id, $webapp]); |
361 |
- mail('webapps-setup@schokokeks.org', 'setup', 'setup'); |
|
361 |
+ send_mail('webapps-setup@schokokeks.org', 'setup', 'setup'); |
|
362 | 362 |
} |
363 | 363 |
|
364 | 364 |
|
365 | 365 |