xp_sendmail question

  • I have a question regarding parameter to xp_sendmail. Instead of defining multiple recepients one by one can we select a distribution list that was setup in the outlook. If so how, please tell it by example. Thank You in advance.

  • yes you can, just as you would with a single mail address...

    @recipients = 'DBAGroup@MyCompany.com'

  • Yes you can just input the group message

    Exec master.dbo.xp_sendmail

    @recipients = 'Group@Acme.com',

    @message = 'have a nice day',

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

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