Skip to content
Permalink
Browse files

Creating event causes log, which breaks redirect

When creating a new event, and activate the mailing for yourself ("Event that I create => YES"), then a log is created when $this->SMTPDebug = 2.
This breaks the redirect of the HTML page, and gives the user "confusing" feedback.  Everything works, but the user receives a weird email log, and a tiny link to click to get back to the expected page.

Disabling error logging fixes this.
  • Loading branch information...
jawtheshark committed Mar 22, 2019
1 parent 7efab11 commit 4a410b8505c4cb8719e71f6cddd22cdfd009d7ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 includes/classes/WebCalMailer.class
@@ -40,7 +40,7 @@ class WebCalMailer extends phpmailer{
// Turn on SMTP authentication.
$this->SMTPAuth = ( $SMTP_AUTH == 'Y' );
$this->SMTPSecure = "tls";
$this->SMTPDebug = 2;
$this->SMTPDebug = 0;
$this->Username = $SMTP_USERNAME; // SMTP username.
$this->Password = $SMTP_PASSWORD; // SMTP password.
}

0 comments on commit 4a410b8

Please sign in to comment.
You can’t perform that action at this time.