specify content type of an attachment in sql server sp_send_dbmail

Posted by SecretWiz on Stack Overflow See other posts from Stack Overflow or by SecretWiz
Published on 2010-05-24T09:16:02Z Indexed on 2010/05/24 9:21 UTC
Read the original article Hit count: 523

Filed under:
|
|

How can I specify the content type of an attachment when sending emails using sp_send_dbmail? The content type is specified as application/octet-stream for Zip, PDF files. But I need to change it to application/zip, application/pdf.

The "file_attachments" parameter takes absolute paths of the attachments. Can not find a place to specify content type.

I am using SQL Server 2005/2008

Please help. Thanks

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about email