Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0]: Newsletters not being sent #8454

Closed
Oldiesmann opened this issue Feb 9, 2025 · 5 comments
Closed

[3.0]: Newsletters not being sent #8454

Oldiesmann opened this issue Feb 9, 2025 · 5 comments

Comments

@Oldiesmann
Copy link
Contributor

Basic Information

When you try to send a newsletter, it says it was successfully added to the mail queue, but it never gets sent.

Steps to reproduce

  1. Try to send a newsletter

Expected result

Newsletter arrives

Actual result

No email arrives despite the mail queue being empty

Version/Git revision

e5142e0

Database Engine

All

Database Version

No response

PHP Version

No response

Logs

Additional Information

Still trying to track this one down but I can tell it's not sent because there is nothing in the mail log for that domain around the time I sent the newsletter. Plesk's "Track Email Delivery" tool is also not showing the message being sent, but does show the two test emails I sent. Nothing in the forum or server error logs either.

@Oldiesmann
Copy link
Contributor Author

It definitely appears the newsletter is never actually sent. It has nothing to do with the mail functionality as I tried the "Send this to these users using personal messages option" and I never get a PM, which is not the case in 2.1.

@sbulen
Copy link
Contributor

sbulen commented Feb 9, 2025

Can you send a test email? I can't even do that...

Fatal error: Uncaught Error: Typed static property SMF\MailAgent\MailAgent::$loaded_api must not be accessed before initialization in D:\wamp64\www\84van30\Sources\MailAgent\MailAgent.php:214 Stack trace: 0 D:\wamp64\www\84van30\Sources\Mail.php(205): SMF\MailAgent\MailAgent::load() 1 D:\wamp64\www\84van30\Sources\Actions\Admin\Mail.php(358): SMF\Mail::send('yada@yada....', 'test from 84van...', 'test from 84van...', NULL, NULL, false, 0) 2 [internal function]: SMF\Actions\Admin\Mail->test() 3 D:\wamp64\www\84van30\Sources\Actions\Admin\Mail.php(94): call_user_func(Array) 4 D:\wamp64\www\84van30\Sources\ActionTrait.php(130): SMF\Actions\Admin\Mail->execute() 5 [internal function]: SMF\Actions\Admin\Mail::call() 6 D:\wamp64\www\84van30\Sources\Actions\Admin\ACP.php(796): call_user_func(Array) 7 D:\wamp64\www\84van30\Sources\Forum.php(489): SMF\Actions\Admin\ACP->execute() 8 D:\wamp64\www\84van30\index.php(149): SMF\Forum->execute() 9 {main} thrown in D:\wamp64\www\84van30\Sources\MailAgent\MailAgent.php on line 214

@sbulen
Copy link
Contributor

sbulen commented Feb 9, 2025

Oddly, I can send a newsletter. I normally use the option where you can type email addresses in because I think it excludes the sender. So, make sure you send it somewhere else other than your admin email.

I monitor the email using Papercut, & it shows up. It does go thru the mail queue.

@Oldiesmann
Copy link
Contributor Author

Can you send a test email? I can't even do that...

Fatal error: Uncaught Error: Typed static property SMF\MailAgent\MailAgent::$loaded_api must not be accessed before initialization in D:\wamp64\www\84van30\Sources\MailAgent\MailAgent.php:214 Stack trace: 0 D:\wamp64\www\84van30\Sources\Mail.php(205): SMF\MailAgent\MailAgent::load() 1 D:\wamp64\www\84van30\Sources\Actions\Admin\Mail.php(358): SMF\Mail::send('yada@yada....', 'test from 84van...', 'test from 84van...', NULL, NULL, false, 0) 2 [internal function]: SMF\Actions\Admin\Mail->test() 3 D:\wamp64\www\84van30\Sources\Actions\Admin\Mail.php(94): call_user_func(Array) 4 D:\wamp64\www\84van30\Sources\ActionTrait.php(130): SMF\Actions\Admin\Mail->execute() 5 [internal function]: SMF\Actions\Admin\Mail::call() 6 D:\wamp64\www\84van30\Sources\Actions\Admin\ACP.php(796): call_user_func(Array) 7 D:\wamp64\www\84van30\Sources\Forum.php(489): SMF\Actions\Admin\ACP->execute() 8 D:\wamp64\www\84van30\index.php(149): SMF\Forum->execute() 9 {main} thrown in D:\wamp64\www\84van30\Sources\MailAgent\MailAgent.php on line 214

#8451 fixes that issue. Test emails work fine with those fixes.

The email address I have in my profile is different than the admin email and even when I choose to send it via PM I don't get it, whereas in 2.1 I do. This happens on both my local test board and on one on my server, regardless of whether I use SMTPTLS or SendMail as well.

@Oldiesmann
Copy link
Contributor Author

I just discovered my issue. I forgot to enable the option to receive newsletters on these forums. I did discover another issue though. Will submit a fix for that shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants