title: Error While sending a mail from Email subscription in SSRS
body: <p>I am getting below error while sending a mail from Email subscription in SSRS. </p>
  
  <p>Below is the Configuration section:</p>
  
  <pre><code>&lt;RSEmailDPConfiguration&gt;
                          &lt;SMTPServer&gt;mysmtpserver addres&lt;/SMTPServer&gt;
                          &lt;SMTPServerPort&gt;
                          &lt;/SMTPServerPort&gt;
                          &lt;SMTPAccountName&gt;
                          &lt;/SMTPAccountName&gt;
                          &lt;SMTPConnectionTimeout&gt;
                          &lt;/SMTPConnectionTimeout&gt;
                          &lt;SMTPServerPickupDirectory&gt;
                          &lt;/SMTPServerPickupDirectory&gt;
                          &lt;SMTPUseSSL&gt;
                          &lt;/SMTPUseSSL&gt;
                          &lt;SendUsing&gt;2&lt;/SendUsing&gt;
                          &lt;SMTPAuthenticate&gt;2
                          &lt;/SMTPAuthenticate&gt;
                          &lt;From&gt;myid@domain.com&lt;/From&gt;
                          &lt;EmbeddedRenderFormats&gt;
                              &lt;RenderingExtension&gt;MHTML&lt;/RenderingExtension&gt;
                          &lt;/EmbeddedRenderFormats&gt;
                          &lt;PrivilegedUserRenderFormats&gt;
                          &lt;/PrivilegedUserRenderFormats&gt;
                          &lt;ExcludedRenderFormats&gt;
                              &lt;RenderingExtension&gt;HTMLOWC&lt;/RenderingExtension&gt;
                              &lt;RenderingExtension&gt;NULL&lt;/RenderingExtension&gt;
                              &lt;RenderingExtension&gt;RGDI&lt;/RenderingExtension&gt;
                          &lt;/ExcludedRenderFormats&gt;
                          &lt;SendEmailToUserAlias&gt;True&lt;/SendEmailToUserAlias&gt;
                          &lt;DefaultHostName&gt;
                          &lt;/DefaultHostName&gt;
                          &lt;PermittedHosts&gt;
                          &lt;/PermittedHosts&gt;
                      &lt;/RSEmailDPConfiguration&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>notification!WindowsService_0!1858!08/20/2013-05:48:02:: i INFO: Handling subscription f78a80f1-dd72-4215-b86a-96fa7391cfc0 to report ReportMenu, owner: mydomain\myid, delivery extension: Report Server Email.
  library!WindowsService_0!1858!08/20/2013-05:48:02:: i INFO: RenderForNewSession('/ReportProject/ReportMenu')
  library!WindowsService_0!1858!08/20/2013-05:48:04:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
  emailextension!WindowsService_0!1858!08/20/2013-05:48:04:: e ERROR: Error sending email. Exception: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender
     at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
     at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
     at System.Net.ClosableStream.Close()
     at System.Net.Mail.MailWriter.Close()
     at System.Net.Mail.SmtpClient.Send(MailMessage message)
     at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
  notification!WindowsService_0!1858!08/20/2013-05:48:04:: i INFO: Notification f06badda-98db-4aba-8a1f-26646430479b completed.  Success: True, Status: Failure sending mail: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender, DeliveryExtension: Report Server Email, Report: ReportMenu, Attempt 0
  </code></pre>
  
  <p>Could someone help on this ?</p>