Hi.
For an entire day, I have been trying to overcome this error; "Failure sending mail: The filename, directory name, or volume label syntax is incorrect. Mail will not be resent", when subscribing to reports in reporting services.
So here's a summary of the efforts made so far:
1: I have setup a local SMTP server to relay from Reporting Services, since the remote SMTP server needs to be handed credentials. I am able to send Database Mail through this local SMTP server, so I feel confident that it is set up correctly.
2: I have succesfully been able to deliver subscribed reports to a fileshare, so the timed subscriptions seem to be operating correctly.
3: I have setup Reporting Services to deliver mails in the local pickup directory, through configuration manager. The local pickup directory has explicit permissions for the SQL service account and I am running the report through the local administrator account. Here is the relevant section of rsreportserver.config.
<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider"><MaxRetries>3</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<RSEmailDPConfiguration>
<SMTPServer></SMTPServer>
<SMTPServerPort>
</SMTPServerPort>
<SMTPAccountName>
</SMTPAccountName>
<SMTPConnectionTimeout>
</SMTPConnectionTimeout>
<SMTPServerPickupDirectory>
C:\inetpub\mailroot\Pickup
</SMTPServerPickupDirectory>
<SMTPUseSSL>
</SMTPUseSSL>
<SendUsing>1</SendUsing>
<SMTPAuthenticate>
</SMTPAuthenticate>
<From>service@MYDOMAIN.com</From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats>
</PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName>
</DefaultHostName>
<PermittedHosts>
</PermittedHosts>
</RSEmailDPConfiguration>
</Configuration>
</Extension>
4: I keep on getting the following result in the log:
library!WindowsService_2!474!11/07/2013-15:46:04:: i INFO: Schedule ba0e13a2-0eb8-464f-8ace-19ab970a2a45 executed at 11/07/2013 15:46:04.schedule!WindowsService_2!474!11/07/2013-15:46:04:: Creating Time based subscription notification for subscription: d9445604-f9a2-4846-92ec-1feb340af4ae
library!WindowsService_2!474!11/07/2013-15:46:04:: i INFO: Schedule ba0e13a2-0eb8-464f-8ace-19ab970a2a45 execution completed at 11/07/2013 15:46:04.
library!WindowsService_2!15b4!11/07/2013-15:46:05:: i INFO: Initializing EnableIntegratedSecurity to 'True' as specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:05:: i INFO: Initializing SessionAccessTimeout to default value of '600' seconds because it was not specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:05:: i INFO: Initializing SqlStreamingBufferSize to default value of '64640' Bytes because it was not specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:07:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
notification!WindowsService_2!15b4!11/07/2013-15:46:08:: i INFO: Handling subscription d9445604-f9a2-4846-92ec-1feb340af4ae to report Bank Sheet, owner: SERVER\Administrator, delivery extension: Report Server Email.
library!WindowsService_2!15b4!11/07/2013-15:46:08:: i INFO: RenderForNewSession('/Sales/Bank Sheet')
library!WindowsService_2!15b4!11/07/2013-15:46:10:: i INFO: Initializing SnapshotCompression to 'SQL' as specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:10:: i INFO: Initializing ChunkSegmentSize to default value of '32320' Bytes because it was not specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:10:: i INFO: Initializing ResponseBufferSizeKb to default value of '64' KB because it was not specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:13:: i INFO: Initializing SessionTimeout to '600' second(s) as specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:13:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
library!WindowsService_2!15b4!11/07/2013-15:46:13:: i INFO: Initializing StoredParametersThreshold to '1500' characters as specified in Server system properties.
emailextension!WindowsService_2!15b4!11/07/2013-15:46:13:: e ERROR: Error sending email. System.IO.FileNotFoundException: The filename, directory name, or volume label syntax is incorrect.
at ReportingServicesCDOInterop.MessageClass.Send()
at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
notification!WindowsService_2!15b4!11/07/2013-15:46:13:: e ERROR: Error occured processing subscription d9445604-f9a2-4846-92ec-1feb340af4ae: Failure sending mail: The filename, directory name, or volume label syntax is incorrect.
Mail will not be resent.
Thanks in advance for your help - does anyone have any insight?