mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
If debugging is on, then make SMTP print debugging info
This commit is contained in:
parent
c260b07707
commit
57ef348040
@ -869,6 +869,10 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
|
||||
|
||||
if ($CFG->smtphosts) {
|
||||
$mail->IsSMTP(); // use SMTP directly
|
||||
if ($CFG->debug > 7) {
|
||||
echo "<pre>\n";
|
||||
$mail->SMTPDebug = true;
|
||||
}
|
||||
$mail->Host = "$CFG->smtphosts"; // specify main and backup servers
|
||||
|
||||
if ($CFG->smtpuser) { // Use SMTP authentication
|
||||
|
Loading…
x
Reference in New Issue
Block a user