MyBB Community Forums

Full Version: Unable to send mail via SMTP, HTTP error code 500.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
help me!

sorry my english

i cant not use smtp sent email

nginx error logs:
[attachment=45927]
browser error:
[attachment=45926]


But I can't see any error log in the ACP panel :
[attachment=45928]

I have tried several SMTP servers including QQ SMTP, NetEase SMTP, Gmail SMTP, AlibabaCloud SMTP, and Tencent Cloud SMTP, but none of them worked and all resulted in HTTP 500 error code.

Is it because there is an issue with my Linux server environment?

Every time I try to send an email, the browser lags for a while, shows a loading icon, and then returns a 500 error code.

In advance, I migrated my MyBB forum to another server, could it be because there were issues during the migration process?

nginx error logs
2023/04/15 11:21:56 [error] 281297#281297: *363 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: stream_set_timeout(): Argument #1 ($stream) must be of type resource, bool given in /var/www/mybb/inc/mailhandlers/smtp.php:281
Stack trace:
#0 /var/www/mybb/inc/mailhandlers/smtp.php(281): stream_set_timeout()
#1 /var/www/mybb/inc/mailhandlers/smtp.php(199): SmtpMail->connect()
#2 /var/www/mybb/inc/functions.php(677): SmtpMail->send()
#3 /var/www/mybb/member.php(1427): my_mail()
#4 {main}
  thrown in /var/www/mybb/inc/mailhandlers/smtp.php on line 281" while reading response header from upstream, client: 172.18.0.2, server: sabbs.net, request: "POST /member.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "sabbs.net", referrer: "https://sabbs.net/member.php?action=resendactivation"

oh i get it the smtp server error code
:
The mail server does not understand the MAIL FROM command. Reason: 502 Invalid paramenters

because i no set Admin Email

The problem is solved

thk U all