Home Forums SQL Server 7,2000 T-SQL Create a scheduled task to email from SQL RE: Create a scheduled task to email from SQL

  • Hi Guys,

    back already!!!!!

    Right.... i got the xp_sendmail function working and have started to have a play with the CDONTs functions which to my surprise I have managed to do and send a HTML bodied email from the SQL server without requiring Outlook to be installed on it, now to be a complete pain:

    I want to be able to send the results from a working stored procedure as various attachments to this pretty HTML email that CDONTs produces. I have been able to send SP's as attachments using the xp_sendmail function which seems pretty straight forward but would like to use the CDONTs now as it seems like a more powerful way. The formats that I want to be able to attach are 1 SP to a csv file and 1 SP to a pdf file. They don't necessarily have to be on the same email but also is that possible?

    thanks again for all your previous help and thanks in advance for the help to follow!!!

    😀