Results 1 to 2 of 2

Thread: xp_sendmail

  1. #1
    Matias Guest

    xp_sendmail

    Hi
    can the receiver list (xp_sendmail parameter) be a query. Becuase i must to concatenate. Thanks

  2. #2
    Guest

    xp_sendmail (reply)

    you want to send mail to addresses that are contained in a table?

    @recipients = 'email1@here.com;email2@here.com'

    just read the email addresses into a variable and seperate them with semicolons. you can do this in a temp table or use a cursor to keep appending a variable with the next email address. (watch the size here)

    only other thing your question might be is if you can send a query and that answer is also yes.

    @query = 'select * from sysobjects'

    bol has a very detailed outline of all xp_sendmail parameters

    ------------
    Matias at 3/14/00 10:04:14 PM

    Hi
    can the receiver list (xp_sendmail parameter) be a query. Becuase i must to concatenate. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •