Jump to content

Email notifications : stacktrace


Recommended Posts

Posted

Hello !

I have installed the email notifications' plugin on my Emby Server, but it seems that it crashes while attempting to send an email 🙄

Emby server setup

  • plaftorm : Synology DSM7
  • plugin version : 3.1.6.0

Logs

2023-04-26 18:59:27.450 Info Server: http/1.1 POST http://host1:8096/emby/Notification/SMTP/Test/***************?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=*****************&X-Emby-Client-Version=4.7.8.0. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
2023-04-26 18:59:27.451 Info App: Sending email *********@gmail.com with subject Emby: Emby: Test Notification
2023-04-26 18:59:37.579 Error App: Error sending email: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: 
   at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
   at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of stack trace from previous location ---
   at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(UserNotification request, CancellationToken cancellationToken) 
2023-04-26 18:59:37.580 Info Server: http/1.1 Response 204 to host2. Time: 10129ms. http://host1:8096/emby/Notification/SMTP/Test/***************?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=**********&X-Emby-Client-Version=4.7.8.0

 

NB : The SMTP settings that I've keyed in are the exact same that are used for the notifications on the Synology NAS ( and I can confirm they work when used with the Synology notifications )

Could someone help me understand what is wrong ?

Thanks beforehand !🙂

Posted

Hi, this is a problem with the microsoft provided email function in the .net runtime. It's a little out of date and not able to send to gmail. Last I checked I think gmail just ends up rejecting it.

Posted
5 minutes ago, Luke said:

Hi, this is a problem with the microsoft provided email function in the .net runtime. It's a little out of date and not able to send to gmail. Last I checked I think gmail just ends up rejecting it.

Thanks for your reply !
I tried to use an *hotmail address as the recipient, but the logs show the same " command unrecognized " error 🙁

2023-04-26 19:19:13.308 Info Server: http/1.1 POST http://host1:8096/emby/Notification/SMTP/Test/*****?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=*****&X-Emby-Client-Version=4.7.8.0. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
2023-04-26 19:19:13.309 Info App: Sending email *****@hotmail.com with subject Emby: Emby: Test Notification
2023-04-26 19:19:23.353 Error App: Error sending email: System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: 
   at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
   at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of stack trace from previous location ---
   at MediaBrowser.Plugins.SmtpNotifications.Notifier.SendNotification(UserNotification request, CancellationToken cancellationToken) 
2023-04-26 19:19:23.353 Info Server: http/1.1 Response 204 to host2. Time: 10045ms. http://host1:8096/emby/Notification/SMTP/Test/*****?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=*****&X-Emby-Client-Version=4.7.8.0

Here's a screenshot of the settings :

embysettings.thumb.jpg.9758879fc6a5b5d66de411ac8a30fe50.jpg

NB : When attempting to test the notification, there are no messages / feedback whatsoever

Posted

It's probably the same thing. You can find some tips and workaround in the thread for the plugin:

Truthfully I'm at the point of wanting to pull the plugin, but some do use it successfully.

Posted

Couldn't get it to work either way ( I even tried switching to another SMTP server, w/o success ...  ), so I ended up removing the plugin 😟

 

  • Thanks 1

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...