Jump to content

Email Notifications


Spaceboy

Recommended Posts

AdrianW

Any thought of adding a "test" button on the above screen to give the ability to verify it works?

 

I'd thought about that as well - but then just enabling the Video Playback notification and playing a random video is a quick way to test.

Link to comment
Share on other sites

Spaceboy

Ok I did try that. Well I think so, the instructions seemed a bit out of date?

 

6u5uzesa.jpg

 

 

Sent from my iPad using Tapatalk

Link to comment
Share on other sites

mboehler

I believe that smtp.gmail.com requires SSL or TLS encryption.

 

You can try using aspmx.l.google.com port 25 with no authentication instead.

Edited by mboehler
  • Like 1
Link to comment
Share on other sites

Spaceboy

That did the trick for me ;-) thanks

not for me, are you sending to and from the same email address?

Link to comment
Share on other sites

snazy2000

There is a test notification in the code just waiting on it being approved :)

 

Sent from my HTC One using Tapatalk

Link to comment
Share on other sites

Spaceboy

ignore me they were going to spam. those settings work for me too. thanks very much

  • Like 1
Link to comment
Share on other sites

gjviii

ignore me they were going to spam. those settings work for me too. thanks very much

Still cant get it working.   Can you print a screenshot?   I may be missing something simple

Link to comment
Share on other sites

Spaceboy

mm i still don't seem to be receiving notifications by email using that, pushover is working.

 

if anyone has any working settings for a web based email could you post them? ta

Link to comment
Share on other sites

mbc0

I can confirm that email works perfectly with one exception and that is if two events happen close together... if I add 2 new items for example I get an email notification for the first one but nothing for the second.  On a closer inspection I see that the dashboard lets me know 2 new items have been added but the error log reveals this

 

 

2014-04-30 21:05:23.4853 Debug - NotificationManager: Sending notification via Email Notifications to user ********
2014-04-30 21:05:23.4853 Debug - Notifier: Emailing **********************.co.uk with subject Media Browser: Rebecca (1940) has been added to your media library.
2014-04-30 21:05:23.4853 Error - NotificationManager: Error sending notification to Email Notifications
Failure sending mail.
System.Net.Mail.SmtpException
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Notifications.NotificationManager.<SendNotification>d__16.MoveNext()
InnerException: System.IO.IOException
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
  at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
  at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
InnerException: System.Net.Sockets.SocketException
An existing connection was forcibly closed by the remote host
  at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
  at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
Edited by mbc0
Link to comment
Share on other sites

AlwinHummels

I believe that smtp.gmail.com requires SSL or TLS encryption.

 

You can try using aspmx.l.google.com port 25 with no authentication instead.

That did the trick for me ;-) thanks

  • Like 1
Link to comment
Share on other sites

gjviii

Thanks.  I have the same settings but still not getting emails. 

 

Here is what I believe is the log (issues highlighted in red)     Any thoughts or recommendations? 

 

EDIT  it looks like Comcast is blocking port 25.  If this is so, are there any plans to add TLS/SSL encryption?

 

2014-04-30 18:28:21.0537 Debug - NotificationManager: Sending notification via Email Notifications to user Vollero
2014-04-30 18:28:21.0577 Debug - Notifier: Emailing
*******@gmail.com with subject Media Browser: Vollero is playing Episode 1 on Safari 534.46 Ipad.
2014-04-30 18:28:21.0577 Debug - NotificationManager: Sending notification via Dashboard Notifications to user Music
2014-04-30 18:28:21.0577 Info - ServerManager: Sending web socket message NotificationAdded
2014-04-30 18:28:21.0577 Debug - NotificationManager: Sending notification via Dashboard Notifications to user Cole and Roman
2014-04-30 18:28:21.0787 Info - ServerManager: Sending web socket message NotificationAdded
2014-04-30 18:28:21.0787 Debug - NotificationManager: Sending notification via Dashboard Notifications to user Vollero
2014-04-30 18:28:21.0897 Info - ServerManager: Sending web socket message NotificationAdded

2014-04-30 18:28:21.1047 Debug - HttpServer: HTTP GET http://localhost:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.1047 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574766
2014-04-30 18:28:21.1047 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574765
2014-04-30 18:28:21.1047 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574767
2014-04-30 18:28:21.1047 Debug - HttpServer: HTTP Response 200 to [::1]:63901. Response time: 15.0008 ms
 Url: http://localhost:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.1237 Debug - HttpServer: HTTP Response 200 to 192.168.1.116:55034. Response time: 27.0015 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574765
2014-04-30 18:28:21.1237 Debug - HttpServer: HTTP Response 200 to 192.168.1.116:55031. Response time: 19.0011 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574766
2014-04-30 18:28:21.1367 Debug - HttpServer: HTTP Response 200 to 192.168.1.116:55089. Response time: 31.0018 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary?_=1398896574767
2014-04-30 18:28:21.2227 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.2227 Debug - HttpServer: HTTP Response 200 to 192.168.1.179:55430. Response time: 6.0004 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.2317 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.2317 Debug - HttpServer: HTTP Response 200 to 192.168.1.179:55431. Response time: 9.0005 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.6687 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:21.6687 Debug - HttpServer: HTTP Response 200 to 192.168.1.179:55429. Response time: 6.0004 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1/Summary
2014-04-30 18:28:22.6108 Debug - HttpServer: HTTP Response 200 to 192.168.1.179:55428. Response time: 1842.1054 ms
 Url: http://192.168.1.141:8096/mediabrowser/Videos/803f998467616a3ceb9cc9442eb38333/hls/f3abac65-7146-6f5f-1f93-ddddae43324e/f3abac65-7146-6f5f-1f93-ddddae43324e3.ts
2014-04-30 18:28:25.0519 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Videos/803f998467616a3ceb9cc9442eb38333/hls/f3abac65-7146-6f5f-1f93-ddddae43324e/stream.m3u8
2014-04-30 18:28:25.0519 Debug - HttpServer: HTTP Response 200 to 192.168.1.179:55428. Response time: 6.0004 ms
 Url: http://192.168.1.141:8096/mediabrowser/Videos/803f998467616a3ceb9cc9442eb38333/hls/f3abac65-7146-6f5f-1f93-ddddae43324e/stream.m3u8
2014-04-30 18:28:25.5549 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Videos/803f998467616a3ceb9cc9442eb38333/hls/f3abac65-7146-6f5f-1f93-ddddae43324e/f3abac65-7146-6f5f-1f93-ddddae43324e4.ts
2014-04-30 18:28:26.6410 Debug - HttpServer: HTTP DELETE http://192.168.1.141:8096/mediabrowser/Videos/ActiveEncodings?deviceId=6e74014a996a3a90994d7413324542bce88583c8
2014-04-30 18:28:26.6470 Info - App: Killing ffmpeg process for C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e.m3u8
2014-04-30 18:28:26.6470 Debug - SessionWebSocketListener: Received ReportPlaybackStopped message
2014-04-30 18:28:26.6590 Info - App: FFMpeg exited with code -1
2014-04-30 18:28:26.6590 Info - App: Deleting partial stream file(s) C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e.m3u8
2014-04-30 18:28:26.6590 Debug - HttpServer: HTTP Response 204 to 192.168.1.179:55431. Response time: 30.0017 ms
 Url: http://192.168.1.141:8096/mediabrowser/Videos/ActiveEncodings?deviceId=6e74014a996a3a90994d7413324542bce88583c8
2014-04-30 18:28:26.8880 Error - HttpResultFactory: Error streaming media
 The specified network name is no longer available
 System.Net.HttpListenerException
    at System.Net.HttpResponseStream.EndWrite(IAsyncResult asyncResult)
    at System.IO.Stream.<BeginEndWriteAsync>b__17(Stream stream, IAsyncResult asyncResult)
    at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, Boolean requiresSynchronization)
 --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.IO.Stream.<CopyToAsyncInternal>d__2.MoveNext()
 --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at MediaBrowser.Server.Implementations.HttpServer.StreamWriter.<WriteToAsync>d__0.MoveNext()
 
2014-04-30 18:28:26.8960 Debug - HttpServer: HTTP Response 500 to 192.168.1.179:55428. Response time: 1343.0768 ms
 Url: http://192.168.1.141:8096/mediabrowser/Videos/803f998467616a3ceb9cc9442eb38333/hls/f3abac65-7146-6f5f-1f93-ddddae43324e/f3abac65-7146-6f5f-1f93-ddddae43324e4.ts
2014-04-30 18:28:28.1741 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e.m3u8
2014-04-30 18:28:28.1741 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e0.ts
2014-04-30 18:28:28.1901 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e1.ts
2014-04-30 18:28:28.1901 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e10.ts
2014-04-30 18:28:28.2051 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e11.ts
2014-04-30 18:28:28.2051 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e12.ts
2014-04-30 18:28:28.2211 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e13.ts
2014-04-30 18:28:28.2211 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e14.ts
2014-04-30 18:28:28.2211 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e15.ts
2014-04-30 18:28:28.2341 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e2.ts
2014-04-30 18:28:28.2341 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e3.ts
2014-04-30 18:28:28.2341 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e4.ts
2014-04-30 18:28:28.2341 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e5.ts
2014-04-30 18:28:28.2501 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e6.ts
2014-04-30 18:28:28.2501 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e7.ts
2014-04-30 18:28:28.2501 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e8.ts
2014-04-30 18:28:28.2501 Info - App: Deleting HLS file C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\transcoding-temp\f3abac65-7146-6f5f-1f93-ddddae43324e9.ts
2014-04-30 18:28:28.6281 Debug - HttpServer: HTTP GET http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1?StartIndex=0&Limit=5&_=1398896574768
2014-04-30 18:28:28.6401 Debug - HttpServer: HTTP Response 200 to 192.168.1.116:55089. Response time: 12.0007 ms
 Url: http://192.168.1.141:8096/mediabrowser/Notifications/f6c51e6fd330e59d16f4cc52886702e1?StartIndex=0&Limit=5&_=1398896574768
2014-04-30 18:29:03.0651 Error - NotificationManager: Error sending notification to Email Notifications
 Failure sending mail.
 System.Net.Mail.SmtpException
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at MediaBrowser.Server.Implementations.Notifications.NotificationManager.<SendNotification>d__16.MoveNext()
 InnerException: System.Net.WebException
 Unable to connect to the remote server
    at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
    at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
 InnerException: System.Net.Sockets.SocketException
 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.76.26:25
    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
 
2014-04-30 18:29:03.1091 Error - NotificationManager: Error sending notification to Email Notifications
 Failure sending mail.
 System.Net.Mail.SmtpException
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at MediaBrowser.Server.Implementations.Notifications.NotificationManager.<SendNotification>d__16.MoveNext()
 InnerException: System.Net.WebException
 Unable to connect to the remote server
    at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
    at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
 InnerException: System.Net.Sockets.SocketException
 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.76.26:25
    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

Edited by gvollero
Link to comment
Share on other sites

FrankAZ

The emailing of notifications is a very useful feature. Thank you. I'd like to see some more alert trigger types in the next iteration.

 

  1. An alert when any client connects to the server. I'd like to see any tentative or investigative connects, not just ones which play content. Ideally the notification would include information of source IP and client type.
     
  2. An alert when any configuration changes are made. Ideally the client identification data as well as a summary of changes made. Multiple notifications, one per event, would be OK.

 

I'd also like to second the request for a 'Test' button. That could also double as a 'Send Recent Log' button to aid in the collation of materials for reporting errors, bugs, etc.

 

Thank you,

 

Frank.

Link to comment
Share on other sites

mboehler

Thanks.  I have the same settings but still not getting emails. 

 

Here is what I believe is the log (issues highlighted in red)     Any thoughts or recommendations? 

 

EDIT  it looks like Comcast is blocking port 25.  If this is so, are there any plans to add TLS/SSL encryption?

 

 

If you are using Comcast for your ISP, you should be able to use their SMTP server.  See here for settings.  If you log in to your Comcast account, you can create a new email address for Media Browser to use.

Link to comment
Share on other sites

gjviii

If you are using Comcast for your ISP, you should be able to use their SMTP server.  See here for settings.  If you log in to your Comcast account, you can create a new email address for Media Browser to use.

 

Thanks for the response.   It looks like Comcast uses ssl encryption.  Do you know if this is going to be added to the plugin?

53627573c2b6c_ssl.png

Link to comment
Share on other sites

mboehler

The test emails have gone through, but I haven't yet received any alert emails.  To be fair though, I don't have it set to alert me when someone plays any audio or videos.  I will try turning that on and see if I get notified.

 

Since you are getting the Test emails, perhaps it is not a problem with the email settings, but is with the alerts themselves.  A bug possibly?

Edited by mboehler
Link to comment
Share on other sites

mboehler

Thanks for the response.   It looks like Comcast uses ssl encryption.  Do you know if this is going to be added to the plugin?

53627573c2b6c_ssl.png

 

It is working on mine without encryption:

536282e573b08_comcastemail.jpg

Link to comment
Share on other sites

econ

I also am seeing the same issue @ is with only the test emails coming through. You see the dashboard notification trigger instantly but the email notification never comes through.

 

Anyone know if there are plans of adding ssl or tls to the email notifications plugin? Comcast is the only isp I know of that doesn't use ssl and port 25. Most isp's block port 25 now.

Edited by econ
Link to comment
Share on other sites

gjviii

It is working on mine without encryption:

536282e573b08_comcastemail.jpg

When you say it is working on your without encryption, do you mean the test is working or the alerts are working?   

I can get the test notification to work, but i believe there are issues with this using multiple users.  I will explain what i am seeing later on that issue.  

Once i get the test notifications to work, i play a video on my ipad, and while i get an alert on the server dashboard, i do not receive any emails.  the server log shows me this

otificationManager: Error sending notification to Email Notifications
Mailbox unavailable. The server response was: 5.1.0 Authentication required
System.Net.Mail.SmtpException
  at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
  at System.Net.Mail.SmtpTransport.EndSendMail(IAsyncResult result)
  at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Plugins.SmtpNotifications.Notifier.<SendNotification>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Server.Implementations.Notifications.NotificationManager.<SendNotification>d__16.MoveNext()
 
My question: how would my test emails get thru, but not my alert emails?
 
Again, thanks for any asistance
Link to comment
Share on other sites

mboehler

After some testing, I've found out that I'm not receiving the notification emails either.  I do receive the test emails, just not the notifications.

Link to comment
Share on other sites

snazy2000

I have just test both test notification and normal notifications to email and both work for me.

 

2014-05-02_1824.png

 

Remember about notifications "Users will not be notified about their own activities." eg playback

Edited by snazy2000
Link to comment
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...