﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / send mail not working when used with attachment / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 20 May 2013 07:57:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: send mail not working when used with attachment</title><link>http://www.sqlservercentral.com/Forums/Topic1359854-391-1.aspx</link><description>The script above does indeed work -- the email just went to the junk folder :-D</description><pubDate>Tue, 19 Feb 2013 11:35:57 GMT</pubDate><dc:creator>sierra4</dc:creator></item><item><title>RE: send mail not working when used with attachment</title><link>http://www.sqlservercentral.com/Forums/Topic1359854-391-1.aspx</link><description>The query looks good. I don't think there is any additional arguments to be passed for attachements. The only thing I would like to point out is SQL Server limits the size of attachment to 1 MB by default.</description><pubDate>Mon, 17 Sep 2012 09:53:35 GMT</pubDate><dc:creator>mbhandari</dc:creator></item><item><title>send mail not working when used with attachment</title><link>http://www.sqlservercentral.com/Forums/Topic1359854-391-1.aspx</link><description>hi,below is the script i have in SQL Server Agent.SET ROWCOUNT 0 EXEC msdb..sp_send_dbmail @profile_name = 'SQL Mail',@recipients = '&amp;lt;me@email.com&amp;gt;',@subject = 'subject',@body = 'Please see attached report',@file_attachments = 'D:\MSSQL10.MSSQLSERVER\MSSQL\Log\output_report_3.txt'--@query = 'sp_helpdb userdb',--@execute_query_database = 'MSDB',--@query_result_separator = ',',gothe job completes successfully but does not send an email. there are no errors generated.when i comment out @file_attachments, and instead uncomment the @query parameters then i do receive an emailwhat am i missing with the @file_attachments parameter?thank you</description><pubDate>Sat, 15 Sep 2012 16:30:34 GMT</pubDate><dc:creator>sierra4</dc:creator></item></channel></rss>