upssnowman 4 Posted October 17, 2021 Posted October 17, 2021 I have a paid email service I have so it's not a Gmail account. I've attempted to set this up via the Email notification plugin. It fails when sending a test message and for an actual event. My settings, mail servers, etc are perfectly fine because they work with Thunderbird on my desktop and my email app on my iPhone. So it's just Emby that won't work in regards to the email notification plugin. Any suggestions on what I may be missing? I do see the following in my logs: 2021-10-17 13:04:40.679 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.SmtpTransport.EndGetConnection(IAsyncResult result) at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) Not sure how there could be a syntax error considering, I am just filling out the plugin information.
Luke 40119 Posted October 18, 2021 Posted October 18, 2021 HI, the issue is the plugin is using an outdated technique to send the emails, and as a result it does not support some modern protocols used by newer email servers. It still supports most email servers, but will need to be reworked to send using a different mechanism.
Jarkkoooo 2 Posted March 11, 2022 Posted March 11, 2022 Hello! Are there any recommendations? What email service will work with that outdated plugin? Will the plugin be updated at some point? Is there any other method to get notifications from the emby server? Thank you.
GrimReaper 4159 Posted March 11, 2022 Posted March 11, 2022 10 minutes ago, Jarkkoooo said: Is there any other method to get notifications from the emby server? Number of them listed in Plugin Catalogue. In addition to Notifiarr, which rulez them all.
Jarkkoooo 2 Posted March 11, 2022 Posted March 11, 2022 Thank you @GrimReaper I was hoping that there is any email service that still works with the email-notification plugin. If I understand correctly notifiarr is a web service triggered by webhooks and needs registration as well as an app on the phone? Am I correct?
GrimReaper 4159 Posted March 11, 2022 Posted March 11, 2022 Just now, Jarkkoooo said: If I understand correctly notifiarr is a web service triggered by webhooks and needs registration as well as an app on the phone? Am I correct? Yep, and it sends notifications over Discord, no proprietary app. 1
RonB26 4 Posted June 5, 2023 Posted June 5, 2023 I've got the same issue as the OP. Should I assume that the syntax error issue has not been fixed?
Luke 40119 Posted June 6, 2023 Posted June 6, 2023 6 hours ago, RonB26 said: I've got the same issue as the OP. Should I assume that the syntax error issue has not been fixed? Hi there, can you please describe the issue that you’re having? Thanks.
RonB26 4 Posted June 6, 2023 Posted June 6, 2023 Hi Luke, Thanks for the reply. I've got my own email server that is set up correctly (I use it for other notification emails with no issues). When trying a test message, the spinning circle will take 3-5minutes before I get the message "errorsendingwebook" This is a log snippet with the error. If you need a complete log, let me know. System.Net.Mail.SmtpException: 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(InternalNotificationRequest request, CancellationToken cancellationToken) at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task) at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken) at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken) Source: System.Private.CoreLib TargetSite: Void Throw() Thanks, Ron
rbjtech 5000 Posted June 7, 2023 Posted June 7, 2023 (edited) I have this setup using port 587 (tick use TLS/SSL) and don't have any issues sending a secure email notification. I have not tested (nor plan to) port 25 - SMTP - but would not recommend that anyway as it's not encrypted, some email services may even reject the request. Port 465 is not supported. System Logging could definately be improved though - as all you get (on a debug log) is a GET log from the 'Server' log class with the term 'Notifications' in it - a seperate 'Notification' Log Class should be made for all Notifications imo. @softworkz Edited June 7, 2023 by rbjtech 3
RonB26 4 Posted June 7, 2023 Posted June 7, 2023 1 hour ago, rbjtech said: I have this setup using port 587 (tick use TLS/SSL) and don't have any issues sending a secure email notification. I have not tested (nor plan to) port 25 - SMTP - but would not recommend that anyway as it's not encrypted, some email services may even reject the request. Port 465 is not supported. System Logging could definately be improved though - as all you get (on a debug log) is a GET log from the 'Server' log class with the term 'Notifications' in it - a seperate 'Notification' Log Class should be made for all Notifications imo. @softworkz Well this explains it. My provider uses port 465. Bummer. Thanks for letting me know rbjtech.
RonB26 4 Posted June 7, 2023 Posted June 7, 2023 Well, just for the heck of it I tried using Port 587 and it works. I guess my provider uses both. Thanks again rbjtech! 1
softworkz 4570 Posted June 7, 2023 Posted June 7, 2023 4 hours ago, rbjtech said: I have this setup using port 587 (tick use TLS/SSL) and don't have any issues sending a secure email notification. I have not tested (nor plan to) port 25 - SMTP - but would not recommend that anyway as it's not encrypted, some email services may even reject the request. Port 465 is not supported. System Logging could definately be improved though - as all you get (on a debug log) is a GET log from the 'Server' log class with the term 'Notifications' in it - a seperate 'Notification' Log Class should be made for all Notifications imo. @softworkz This is something for @Luketo comment on. Thanks
ljc219 1 Posted February 27 Posted February 27 2023 年 6 月 7 日晚上 11:50,rbjtech 说: 我使用端口 587 进行此设置(勾选使用 TLS/SSL),并且在发送安全电子邮件通知时没有任何问题。 我还没有测试(也不打算测试)端口 25 - SMTP - 但无论如何都不建议这样做,因为它没有加密,一些电子邮件服务甚至可能会拒绝请求。 不支持端口 465。 不过,系统日志记录肯定可以改进 - 因为您(在调试日志上)获得的只是来自“服务器”日志类的 GET 日志,其中包含术语“通知” - 应该为所有通知 imo 创建一个单独的“通知”日志类。@softworkz 感谢.填写587,勾选启用 SSL / TLS,重启后终于测试成功了 1
rbjtech 5000 Posted February 27 Posted February 27 4 minutes ago, ljc219 said: 感谢.填写587,勾选启用 SSL / TLS,重启后终于测试成功了 Quote Thank. Fill in 587, check Enable SSL/TLS, and finally the test is successful after restarting 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now