Advertisement:

Author Topic: Notifying admin when a new member joins - STOPPED WORKING  (Read 1083 times)

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Notifying admin when a new member joins - STOPPED WORKING
« on: November 30, 2019, 03:12:02 PM »
Hi,

I have been using SMF for over 3 years and I have to say everything was more than satisfactory. I used smtp.gmail to send email to user and everything was working perfectly. All of a sudden couple of weeks ago I realized that SMTP stopped working (for some unknown reason) so switched to "PHP Setting". New users start receiving activation email again but I realized there was no notification email to me (as admin) to let me know that new member joined. before creating this topic I went through all the old topic and tried everything but unfortunately none worked. The fact that new users will be able to receive the activation email (during registration) and not me confuses me the most. would you please help me to understand what went wrong here?

FYI, I'm currently using version 2.0.15.

thank you in advance.

-Roozbeh
« Last Edit: November 30, 2019, 03:35:02 PM by Roozbeh »

Offline m4z

  • 98.8% chimp
  • Localizer
  • Sophist Member
  • *
  • Posts: 1,206
  • /mɛs/
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #1 on: November 30, 2019, 04:28:18 PM »
Is the box under Admin > Members > Registration > Settings > "Notify administrators when a new member joins" ticked?
"Faith is what you have in things that don't exist."
--Homer Simpson

Es gibt hier im Forum ein deutsches Support-Board!
<werbung>Meine Freundin hat ihr erstes Buch veröffentlicht!</werbung>

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #2 on: November 30, 2019, 04:41:02 PM »
yes it was and it is. As I mentioned it was working for three years with no issue. I also checked my database the value under _setting -> notify_admin is set to 1 as well.

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #3 on: November 30, 2019, 04:41:56 PM »
Do you receive any forum emails?
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #4 on: November 30, 2019, 04:51:02 PM »
no nothing so far. Just to check, I did register myself using the same email provider (i.e. outlook) address to see whether I get any email and answer was yes. I could get activation email from forum but nothing as admin.

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #5 on: November 30, 2019, 04:58:18 PM »
Try sending yourself an email with attached.  Edit file to include your webmaster address and mail to address (your admin account).
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #6 on: November 30, 2019, 05:23:41 PM »
Yes I did use this script before and it works. I could send email to myself so issue is not my server either. I went a bit further and tried to debug the notifyadmin() function unfortunately not much success still could not figure out the issue.

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #7 on: November 30, 2019, 05:33:58 PM »
Anything in forum or server error logs
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #8 on: November 30, 2019, 05:40:08 PM »
No error message when using PHP default. Error messages appears when I switch back to smtp which is different story.

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #9 on: November 30, 2019, 05:51:10 PM »
If testmail.php works, and members receive activation emails, forum is sending emails, so there's nothing wrong with your email setup.  If your admin email address receives test email, they're not being blocked as spam.  Is your webmaster address @gmail.com?
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #10 on: November 30, 2019, 05:56:56 PM »
yes you are correct problem is not my email server. to answer your question I'm using @outlook.com.

one thing I did was to hard code the content of testmail.php into the notifyadmin() function but unfortunately could not make it work. SMF start crashing during member registration. I think I need to study more php before going this direction. 

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #11 on: November 30, 2019, 05:59:21 PM »
Have you tried sending a newsletter to admins?
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #12 on: November 30, 2019, 06:01:17 PM »
glad you asked, no I can not receive any newsletter either. very strange!!

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #13 on: November 30, 2019, 06:10:34 PM »
If you have a test account with outlook email address that receives emails, make it admin and see if emails still work.
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #14 on: November 30, 2019, 06:23:57 PM »
here we go, I added new account using one of my old email addresses (...@live.com) and it worked. I did send a newsletter to both admins but the only latest account received it.

would you please explain what went wrong? I really like to figure out the issue and somehow get involve into development if possible.

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #15 on: November 30, 2019, 06:26:11 PM »
Change the email address in your original admin account, see if that fixes it.
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,632
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #16 on: November 30, 2019, 06:31:20 PM »
did you check your spam folder?

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #17 on: November 30, 2019, 06:36:42 PM »
Change the email address in your original admin account, see if that fixes it.

I removed the test admin account and changed my email address to the one tested minutes ago and everything is working. thanks a lot for your help. but here is the question, if the issue was simply email address why did I receive email using testmail.ohp?

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,516
  • We were all equal in the end.
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #18 on: November 30, 2019, 06:43:43 PM »
That's what I'm wondering.  The problem is obviously with the one email account, something to do with server settings or spam filters, but why do test emails get through?

“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline Roozbeh

  • Semi-Newbie
  • *
  • Posts: 19
Re: Notifying admin when a new member joins - STOPPED WORKING
« Reply #19 on: November 30, 2019, 06:46:57 PM »
If this help, the testmail email went directly to my spam folder but it went through as you mentioned..