I am writing a stored procedure in T-SQL that sends mail. I am looking to add an attachment to these emails. I have an html string that I would like to convert to pdf and attach to my email.
I am using selectPDF to convert my html to pdf.
Can this all be done in sql or do I have to write an application for creating the pdf document?