Skip to content
Snippets Groups Projects
Commit 5ce13290 authored by tbrehm's avatar tbrehm
Browse files

Send welcome email only on master server.

parent c16a38d5
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,8 @@ class mail_plugin {
$mailTarget = $data["new"]["email"];
$mailSubject = "=?utf-8?B?".base64_encode($welcome_mail_subject)."?=";
mail($mailTarget, $mailSubject, $welcome_mail_message, $mailHeaders);
//* Send the welcome email only on the "master" mail server to avoid duplicate emails
if($conf['mirror_server_id'] == 0) mail($mailTarget, $mailSubject, $welcome_mail_message, $mailHeaders);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment