Jump to content
nickgrill

Email Notifications Not Working

Recommended Posts

nickgrill

I am able to get the test email notifications but I do not receive the emails when new content is added, a user starts watching, or any other setting.  I only receive the test emails.

Share this post


Link to post
Share on other sites
Luke

Hi there, can you please go over an example? Server log?

Share this post


Link to post
Share on other sites
nickgrill

Hi there, can you please go over an example? Server log?

here is a log with an error

 

2019-02-18 09:06:41.904 Info HttpServer: HTTP POST http://nickgrill.getmyip.com:8096/emby/Sessions/Playing. UserAgent: Roku/DVP-9.0 (559.00E04114A)

2019-02-18 09:06:41.906 Info PlaybackReporting - EventMonitorEntryPoint: Adding playback tracker : d159a9a7-4b33-54a8-9ef3-074a4fc04d51-aab8c8ce91a04c5fbc76b01b6f3edd32-fbbfdf8a53631fe78542d3ed2d8f2207

2019-02-18 09:06:41.906 Info PlaybackReporting - EventMonitorEntryPoint: PlaybackTracker : Adding Start Event : 2/18/2019 9:06:41 AM

2019-02-18 09:06:41.906 Info PlaybackReporting - EventMonitorEntryPoint: Creating StartPlaybackTimer Task

2019-02-18 09:06:41.906 Info PlaybackReporting - EventMonitorEntryPoint: StartPlaybackTimer : Entered

2019-02-18 09:06:41.906 Info HttpServer: HTTP Response 204 to 69.126.211.139. Time: 2ms. http://nickgrill.getmyip.com:8096/emby/Sessions/Playing

2019-02-18 09:06:41.914 Info App: Sending email 6105636948@@mms.att.net with subject Emby: The Links is playing Sing on Roku Streaming Stick

2019-02-18 09:06:41.914 Error App: Error sending email: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.Sockets.SocketException: A non-recoverable error occurred during a database lookup

at System.Net.Dns.InternalGetHostByName(String hostName)

at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)

at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)

at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)

at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)

at System.Net.Mail.SmtpClient.GetConnection()

at System.Net.Mail.SmtpClient.Send(MailMessage message)

--- End of inner exception stack trace ---

at System.Net.Mail.SmtpClient.Send(MailMessage message)

at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotificationCore(UserNotification request, CancellationToken cancellationToken) 

 

this is the test notification working

 

2019-02-18 13:11:41.402 Info App: Sending email 6105636948@@mms.att.net with subject Emby: Emby: Test Notification

2019-02-18 13:11:41.402 Error App: Error sending email: System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.Sockets.SocketException: A non-recoverable error occurred during a database lookup

at System.Net.Dns.InternalGetHostByName(String hostName)

at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)

at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)

at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)

at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)

at System.Net.Mail.SmtpClient.GetConnection()

at System.Net.Mail.SmtpClient.Send(MailMessage message)

--- End of inner exception stack trace ---

at System.Net.Mail.SmtpClient.Send(MailMessage message)

at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotificationCore(UserNotification request, CancellationToken cancellationToken)

2019-02-18 13:11:41.402 Info HttpServer: HTTP Response 204 to 192.168.3.126. Time: 11ms. http://192.168.3.126:8096/emby/Notification/SMTP/Test/c3f17468c86148939257f5b6617f797a

2019-02-18 13:11:41.407 Info App: Sending email 6105636948@@mms.att.net with subject Emby: Emby: Test Notification

2019-02-18 13:11:42.977 Info App: Completed sending email 6105636948@@mms.att.net with subject Emby: Emby: Test Notification

2019-02-18 13:11:42.977 Info HttpServer: HTTP Response 204 to 192.168.3.126. Time: 1586ms. http://192.168.3.126:8096/emby/Notification/SMTP/Test/7abc08e048c74bc08b655705a27faaeb

2019-02-18 13:11:53.739 Info HttpServer: HTTP GET http://192.168.3.126:8096/emby/Users/c3f17468c86148939257f5b6617f797a. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

2019-02-18 13:11:53.741 Info HttpServer: HTTP GET http://192.168.3.126:8096/emby/System/Logs. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

2019-02-18 13:11:53.741 Info HttpServer: HTTP Response 200 to 192.168.3.126. Time: 2ms. http://192.168.3.126:8096/emby/Users/c3f17468c86148939257f5b6617f797a

2019-02-18 13:11:53.741 Info HttpServer: HTTP GET http://192.168.3.126:8096/emby/System/Configuration. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

2019-02-18 13:11:53.742 Info HttpServer: HTTP Response 200 to 192.168.3.126. Time: 1ms. http://192.168.3.126:8096/emby/System/Configuration

2019-02-18 13:11:53.742 Info HttpServer: HTTP Response 200 to 192.168.3.126. Time: 2ms. http://192.168.3.126:8096/emby/System/Logs

2019-02-18 13:11:56.792 Info HttpServer: HTTP GET http://192.168.3.126:8096/web/strings/en-US.json?v=1550513516787. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36

2019-02-18 13:11:56.792 Info HttpServer: HTTP GET http://192.168.3.126:8096/web/bower_components/emby-webcomponents/strings/en-US.json?v=1550513516787. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36 

Share this post


Link to post
Share on other sites
Luke

I'm not sure at this point. There's obviously not a widespread problem so this might be host-specific. Can you please attach the complete log file? Thanks.

Share this post


Link to post
Share on other sites
K1ng_Lear
Posted (edited)

Hi Luke,

 

I've a similar problem here. I added a server log. 

 

Thx for help.

 

 

embyserver.txt

Edited by K1ng_Lear

Share this post


Link to post
Share on other sites
Luke

Hi Luke,

 

I've a similar problem here. I added a server log. 

 

Thx for help.

Hi there, can you please describe your issue? How did you configure the plugin?

Share this post


Link to post
Share on other sites
K1ng_Lear

Hi there, can you please describe your issue? How did you configure the plugin?

 

Hi Luke,

 

I configured the app like the added screenshot show. I tried all variants of the both security checkboxes without success. Those settings should be work because I use the in my smart home setting, too. 

 

my edit process:

 

1 edit setting

2 save

3 leave plug in

4 recall plug in

5 trigger test mail 

 

I tried with skipping step 3 & 4, too.

 

thx

post-287366-0-82582800-1588086205_thumb.png

Share this post


Link to post
Share on other sites
nickgrill

still having the issue.  some notifications come through but others do not.

Share this post


Link to post
Share on other sites
rbjtech

Have you set the Notification to actually use the email method ?

 

ie Advanced > Notifications > User > Video Playback Started > 'Enable Notification' for Users as Required > Sent Notification to 'Admins etc' using > Email Notifications 

 

Only then will it send notifications for playback (as an example).

 

If your test Notification is working, then you are good to go once you have setup the Notification criteria above.

Share this post


Link to post
Share on other sites
K1ng_Lear

Have you set the Notification to actually use the email method ?

 

ie Advanced > Notifications > User > Video Playback Started > 'Enable Notification' for Users as Required > Sent Notification to 'Admins etc' using > Email Notifications 

 

Only then will it send notifications for playback (as an example).

 

If your test Notification is working, then you are good to go once you have setup the Notification criteria above.

 

Yes, I did. Nothing else, independently from this setting should the test mail sender, shouldn’t it. 

Share this post


Link to post
Share on other sites
rbjtech

Yes, I did. Nothing else, independently from this setting should the test mail sender, shouldn’t it. 

 

I'm replying to the OP  ;)  

 

If your test email is not working, then you have a different problem from the OP (and you should probably start your own thread ..) but it is likely related to your settings and/or your ISP - until your test email works, then nothing is going to work.

Share this post


Link to post
Share on other sites
rbjtech
Posted (edited)

I'm replying to the OP  ;)  

 

If your test email is not working, then you have a different problem from the OP (and you should probably start your own thread ..) but it is likely related to your settings and/or your ISP - until your test email works, then nothing is going to work.

 

@@K1ng_Lear - Just on this - have you tried setting the 'send from' address the same as your 'send to' address - as you may not have SMTP permissions to use other names other than your own email address.  ie keep them all as 'Michael@'.  It's also worth trying port TCP 587 for SSL as the SSL handshake on your email service may not be fully compliant with TCP 465.

Edited by rbjtech

Share this post


Link to post
Share on other sites
nickgrill

Have you set the Notification to actually use the email method ?

 

ie Advanced > Notifications > User > Video Playback Started > 'Enable Notification' for Users as Required > Sent Notification to 'Admins etc' using > Email Notifications 

 

Only then will it send notifications for playback (as an example).

 

If your test Notification is working, then you are good to go once you have setup the Notification criteria above.

Yes, I have it set that way.  When I do a test it works with no problem.  The issue is when I add multiple movies not all the notifications go out to all users.  Example, I add 4 movies and sends notifications to 5 users.  Some users might get 1 notification while others might get more and not for the same movie either.  weird.

Share this post


Link to post
Share on other sites
K1ng_Lear

@@K1ng_Lear - Just on this - have you tried setting the 'send from' address the same as your 'send to' address - as you may not have SMTP permissions to use other names other than your own email address.  ie keep them all as 'Michael@'.  It's also worth trying port TCP 587 for SSL as the SSL handshake on your email service may not be fully compliant with TCP 465.

 

As mentioned, I use this settings in the mail notification system from my smart home. 

Share this post


Link to post
Share on other sites
rbjtech

Yes, I have it set that way.  When I do a test it works with no problem.  The issue is when I add multiple movies not all the notifications go out to all users.  Example, I add 4 movies and sends notifications to 5 users.  Some users might get 1 notification while others might get more and not for the same movie either.  weird.

 

It could be anti-spam settings on the SMTP server - ie it thinks you are spamming it if you send too many emails in a set period and thus drops them.  Set it to just a couple of people and ramp up until it starts dropping them - if it's consistent, then I suspect that is your problem.

 

Maybe request a delay be added to the plugin - as this would solve the problem, even a 1 second delay between the sends should be sufficient.

Share this post


Link to post
Share on other sites
rbjtech

As mentioned, I use this settings in the mail notification system from my smart home. 

 

So have you tried the official IANA SMTPS port - TCP 587 ?

 

Emby's SMTP SSL negotiation may be different to your smart home - your mail provider will likely accept both (as well as TCP 25, which is something else to try to at least get the unencrypted basics working) ...

Share this post


Link to post
Share on other sites
K1ng_Lear

So have you tried the official IANA SMTPS port - TCP 587 ?

 

Emby's SMTP SSL negotiation may be different to your smart home - your mail provider will likely accept both (as well as TCP 25, which is something else to try to at least get the unencrypted basics working) ...

 

This is weird, but it solved my problem. 587 works. The port I set is the official one from my provider and always worked until now. 

 

so thanks for help. 

 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...