Try to sending email not working with suscription in Reporting Services

Amin 1 Reputation point
2021-12-20T18:02:10.847+00:00

Try to sending email not working with suscription in Reporting Services, the error is :

emailextension!WindowsService_29!475c!12/20/2021-07:00:08:: e ERROR: Error sending email. Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
---> (Inner Exception #0) System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)<---
. Additional Information: SmtpException StatusCode:GeneralFailure
notification!WindowsService_29!475c!12/20/2021-07:00:08:: e ERROR: Error occurred processing subscription d218375a-a99f-4b7a-98e5-4bbcb6f4b6d2: Failure sending mail: One or more errors occurred.Mail will not be resent.

is any idea to solven the error?

Best regards

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
{count} votes

13 answers

Sort by: Most helpful
  1. Joshua Pries 1 Reputation point
    2022-01-05T16:44:31.207+00:00

    Glad to hear others are at least having similar issues. Not sure if it helps much, but the below is from my log.
    This happened today after completely uninstalling SSRS and reinstalling. Reuploaded all reports and recreated subscriptions.
    Will try to use Gmail SMTP instead to see if there's any difference.

    emailextension!WindowsService_1!1dfc!01/05/2022-07:30:08:: e ERROR: Error sending email. Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
    at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
    at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)
    --- End of inner exception stack trace ---
    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
    at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
    at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
    ---> (Inner Exception #0) System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
    at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
    at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)<---
    . Additional Information: SmtpException StatusCode:GeneralFailure
    notification!WindowsService_1!1dfc!01/05/2022-07:30:08:: e ERROR: Error occurred processing subscription 7bd2de99-a658-41d6-a983-471bad6d1c34: Failure sending mail: One or more errors occurred.Mail will not be resent.
    notification!WindowsService_1!1dfc!01/05/2022-07:30:08:: i INFO: Notification 649fbb60-77f2-4e81-bc1f-f92c815c59b9 completed. Success: False, Status: Failure sending mail: One or more errors occurred.Mail will not be resent., DeliveryExtension: Report Server Email, Report: Equipment Maintenance Visiblity, Attempt 0
    library!WindowsService_1!232c!01/05/2022-07:33:29:: i INFO: Call to CleanBatch()
    library!WindowsService_1!232c!01/05/2022-07:33:29:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions, 0 extended content cache.
    library!WindowsService_1!232c!01/05/2022-07:33:29:: i INFO: Call to CleanBatch() ends
    library!WindowsService_1!d28!01/05/2022-07:43:29:: i INFO: Call to CleanBatch()


  2. 04147834 6 Reputation points
    2022-01-06T21:51:53.833+00:00

    Personally, I had many false positives for fixes. I would make a change or reboot the server. A few reports would deliver by email then the error would return.


  3. Ilan Myers-Prudhomme 1 Reputation point
    2022-01-07T01:24:01.133+00:00

    Ok, here is a solution to this issue that is definitely working for me now.

    I setup a local SMTP server via IIS 6.0. I configured it as an SMTP relay to Office365 using the same login I was using for SSRS. Then I configured SSRS to use my new local SMTP. The email messages are still coming through Office365 using the authenticated email account I had originally setup, which I needed, and I have run it 10 times with no errors. I have actually installed the SMTP service on another server in our network, rather than installing it locally on the same server as SSRS, but it can be installed on either. I know this doesn't address the problem I was having connecting to SSRS directly to Office365, but it's working well now.

    Here is the link I found to help me setup and configure the SMTP Relay:
    https://devondba.blogspot.com/2014/07/configuring-application-to-email.html

    Here is another link, though the first one was easier to follow:
    https://support.datasharp.uk.com/portal/en-gb/kb/articles/how-to-configure-iis-for-relay-with-office-365


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.