Answered by:
Send a PDF file as an E-mail attachment from Network folder using SQL Server 2005 e-mail - issue

Question
-
Hi friends,
I have some PDF file whihc are stored on Network shared Drive Folder.
I wuould like to send this PDF file as An e-mail attachment to some colleague, on schedule basis.
Is there any way to send PDF file as an e-mail attachemnt using SQL Server 2005 ?
Sunday, June 20, 2010 6:24 PM
Answers
-
Pleas read BOL
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/f1d7a795-a3fd-4043-ac4b-c781e76dab47.htm
- [ @file_attachments = ] 'file_attachments'
-
Is a semicolon-delimited list of file names to attach to the e-mail message. Files in the list must be specified as absolute paths. The attachments list is of type nvarchar(max).
Best Regards, Uri Dimant http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/- Proposed as answer by Adam Haines Monday, June 21, 2010 3:09 PM
- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 6:34 AMAnswerer -
Have you heard about DatabaseMail in SQL Server 2005?
SQL Server 2005 Database Mail provides several options for sending e-mail messages. These options include sending attachments, setting sensitivity and importance, including query results, and formatting the e-mail message in an HTML format.
Go to below link which will show you how to configure Database Mail in SQL Server 2005 and how to send email from SQL Server with attchment file.
Thanks,
Kapil Khalas- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 12:07 PM -
One another option is designing a small SSIS package with send mail task. Refer the below links for details
- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 12:18 PM
All replies
-
Pleas read BOL
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/f1d7a795-a3fd-4043-ac4b-c781e76dab47.htm
- [ @file_attachments = ] 'file_attachments'
-
Is a semicolon-delimited list of file names to attach to the e-mail message. Files in the list must be specified as absolute paths. The attachments list is of type nvarchar(max).
Best Regards, Uri Dimant http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/- Proposed as answer by Adam Haines Monday, June 21, 2010 3:09 PM
- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 6:34 AMAnswerer -
Have you heard about DatabaseMail in SQL Server 2005?
SQL Server 2005 Database Mail provides several options for sending e-mail messages. These options include sending attachments, setting sensitivity and importance, including query results, and formatting the e-mail message in an HTML format.
Go to below link which will show you how to configure Database Mail in SQL Server 2005 and how to send email from SQL Server with attchment file.
Thanks,
Kapil Khalas- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 12:07 PM -
One another option is designing a small SSIS package with send mail task. Refer the below links for details
- Marked as answer by KJian_ Monday, June 28, 2010 6:36 AM
Monday, June 21, 2010 12:18 PM