FreshPorts / freshports

The website part of FreshPorts
http://www.freshports.org/
BSD 2-Clause "Simplified" License
68 stars 24 forks source link

New Account Confirmation: PHPMailer Fatal Error #584

Closed mporembs closed 2 months ago

mporembs commented 2 months ago

I'm trying to create a new account but the site is unable to send me a confirmation email. The email address I used has a .ski TLD, if that matters. I keep receiving the following error:

Fatal error: Uncaught Error: Class "PHPMailer\PHPMailer\Exception" not found in /usr/local/share/phpmailer/PHPMailer.php:2063 Stack trace:
#0 /usr/local/share/phpmailer/PHPMailer.php(1689): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Fri, 2 Au...', 'Someone, perhap...')
#1 /usr/local/share/phpmailer/PHPMailer.php(1523): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /usr/local/www/freshports/include/freshports.php(2038): PHPMailer\PHPMailer\PHPMailer->send()
#3 /usr/local/www/freshports/www/login.php(138): freshports_UserSendToken('19778', Object(PgSql\Connection)
#4 {main} thrown in /usr/local/share/phpmailer/PHPMailer.php on line 2063
dlangille commented 2 months ago

Good news! I can reproduce this on prod and on my test host. :)

It is not related to .ski

dlangille commented 2 months ago

I think I know why.

I moved from postfix to dma - and the website can't connect to it.

The fix may be a configuration file change, but it might also need code to do auth.

dlangille commented 2 months ago

@mporembs please try again. I have re-enabled postfix - my test worked.

mporembs commented 2 months ago

Works now. Thanks so much!