Send a Mail with Attachment with Script Task

  • hey

    is it possible to send a mail with multiple attachments with the script task?

    thanks for any help

  • Hi

    Dabase mail need to be configured

    You can use Query after db mail configured

    EXEC msdb.dbo.sp_send_dbmail

    @profile_name = 'MAIL', --DB mail Profile

    @recipients -- = 'abc@abc.co.za',

    @body = 'Info',

    @subject = 'SUbject',

    @file_attachments = 'c:\abc.doc;c:\babc.doc'

  • nero.ch (6/25/2009)


    hey

    is it possible to send a mail with multiple attachments with the script task?

    thanks for any help

    Yes, it is possible. Check MailMessage class and Attachments property. Also check here for ideas.

    ---
    SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply