How to generate script for database mail?

  • Many thanks in advance.

  • to send or enable database mail?

  • EXEC msdb.dbo.sp_send_dbmail

    Check BOL for the arguments you need.

    Converting oxygen into carbon dioxide, since 1955.
  • by the topic, it sounds like he wants to script out the database mails ettings, not how to send database mail.

    my old post here has an awesome script for that:

    Script Out Database Mail Settings?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

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