Mailtrain-org / mailtrain

Self hosted newsletter app
GNU General Public License v3.0
5.47k stars 691 forks source link

Can't Send Emails. _senderTimeToNextEnabledDay in mailer.js broken v2 [Temp Fix included] #1376

Open markalston opened 1 month ago

markalston commented 1 month ago

I know you are working on v3 but just want to document this for myself and others. I have been struggling for a week trying to get emails to send changing all sorts of settings.

Finally realized that the function _senderTimeToNextEnabledDay in server/lib/mailers.js would extend the time out a day for any emails sent. Since I want to send emails immediately I simply added a return 0 statement to the top of the function and now my emails are sending.

If I have time, and assuming this code will be used in v3, I will try to figure out where it is failing but for now I have a working v2 system so I'm not going to get to it too soon.