Fix hardcoded username in register.php
This commit is contained in:
parent
c2b2369b23
commit
b56e94d3b7
|
@ -257,7 +257,7 @@ $mail->Username = $mailer['username'];
|
|||
$mail->Password = $mailer['password'];;
|
||||
$mail->SMTPSecure = 'tls';
|
||||
|
||||
$mail->setFrom('no-reply@'.$mailer['host'], 'no-reply');
|
||||
$mail->setFrom($mailer['username'].'@'.$mailer['host'], $mailer['username']);
|
||||
$mail->addAddress($user_email);
|
||||
|
||||
$mail->Subject = "Confirmation code for ".$_SERVER['HTTP_HOST'];
|
||||
|
|
Loading…
Reference in New Issue