Open martyshep opened 5 years ago
@martyshep I don't know the answer, but I have a question for you if I can. What event do you use to have this working? New topic created or Post created ?: I ask because I always got notification email 2x. Thanks
@Jimmi08 I notify on New Topic Created and Topic Updated. When someone posts on an existing thread, with this setting it generates notification to the userclass. Sounds like a bit of a defect in behaviour tho, you would of thought it wouldn't of notified unless you set Post notification. At least it sounds like that is where your two notifications are coming from.
I think it maybe because notify does not respect the settings in Mail, it seems to do its own thing with regards to mail settings. I am trying to set up notify with one of my plugins on my local host on Windows 10 with xamp but although the test emails work in Mail they don't in Notify. Been looking through e107 (including some of my old plugins) and there is inconsistency in mailing across the board which really needs sorting out.
@G4HDU This can be out off topic, but what I know that there are the old and new ways how to send emails. I use your old plugins and email sending/notifying still works. The new way is used in forum plugin (it was rewritten some time ago with e_notify). For testing emails use Mails in User part with logging out.
@Jimmi08 My exact problem is that I can't use PHP or Sendmail on my local server, only the SMTP settings in Mail and I can't see how to set the SMTP with authentication settings for Notify hence forum plugin etc don't notify. Mail newsletter works though because that does use the SMTP settings where as notify (AFAIK) uses php_mailer.
I just debug my plugin on a live site and copy back to localhost.
@G4HDU this is what I don't understand :
forum plugin etc don't notify.
It does and you can send test forum notify too. Inside Notify tool.
@Jimmi08 Not on my server it doesn't because I can't use phpmailer because e107 defaults it to php where as I need smtp. I can make it work by changing line 225 to $overrides['mailer']='smtp';
in handlers/mail.php it should come from prefs for mail not hard coded as $overrides['mailer']='php';
Hm, you are right. You should create a separate issue for this. I just updated the site and it stopped to work. Test email will come, but not test notify from forum . But I am sure it worked with SMTP before...
EDIT: I have always browser debug mode ON (don't ask why I can't find the reason) - as soon as I set it OFF, forum notify was sent with SMTP setting.
I tried both. Preferences/Email settings and Mail/Preferences - both are set to SMTP. The problem was in debug mode (I don't mean Developer mode, but debug mode set by url).
Sorted, thanks for your help
I use Notify with Forum to email members who have subscribed to a userclass of "Notify me of all new forum posts" to send emails. When a new topic is created, the email gets created to the total of users in the userclass and goes into Pending Mail. However if say 60 users are to receive this email, the email sits in pending for 60 minutes, sending one email per minute of the 60 total. My email settings are SMTP and to send all emails in one go, with 0 set for delay.
Interestingly this delay also applies to emails generated from the Forum plugin where Topic Tracking is used. Same delay.
My emails created by admin as a mailshot get sent immediately, 200 emails in one go. I also tested this morning where I have pending Forum notification emails sitting in Pending Mail, I create a mail using the interface to destination self, then when I go through the send process and click start, not only does it send my email to self immediately, it also then sends all the emails sitting in Pending immediately.
I've got my scheduler set to process mails every minute.
Any ideas?