Remove hardcoded domain from rsusers.php and remove duplicate code from phpmailer.inc.php
This commit is contained in:
parent
c2092e5f41
commit
8b40e729a3
|
@ -23,7 +23,7 @@ include "head.inc";
|
|||
$CONFIG = include($config_file);
|
||||
|
||||
# $hostname: '{POPaddress:port/pop3}INBOX'
|
||||
$hostname = '{rocksolidbbs:110/pop3}INBOX';
|
||||
$hostname = '{mail.example.com:110/pop3}INBOX';
|
||||
# $external: Using external POP auth?
|
||||
$external = 0;
|
||||
# $workpath: Where to cache users (must be writable by calling program)
|
||||
|
@ -163,7 +163,7 @@ $mail->Username = $mailer['username'];
|
|||
$mail->Password = $mailer['password'];;
|
||||
$mail->SMTPSecure = 'tls';
|
||||
|
||||
$mail->setFrom('no-reply@rocksolidbbs.com', 'no-reply');
|
||||
$mail->setFrom('no-reply@'.$mailer['host'], 'no-reply');
|
||||
$mail->addAddress($user_email);
|
||||
|
||||
$mail->Subject = "Confirmation code for ".$_SERVER['HTTP_HOST'];
|
||||
|
|
|
@ -23,7 +23,4 @@ $mailer['password'] = "password";
|
|||
|
||||
require $phpmailer['phpmailer'];
|
||||
require $phpmailer['smtp'];
|
||||
|
||||
# Comment out the following line if PHPMailer < 6.0
|
||||
#use PHPMailer\PHPMailer\PHPMailer;
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue