Images: Send SMTP mail from SQL Server with xp_SMTPSendMail80 - TechRepublic

Images: Send SMTP mail from SQL Server with xp_SMTPSendMail80

  • xp_SMTPSendMail80: Sending a basic e-mail

    xp_SMTPSendMail80

    Joshua Hoskins wrote about xp_SMTPSendMail80’s ability to send mail directly from SQL Server to an SMTP server in a The Right Tool for the Job? blog post.

    Sending a basic e-mail

    Here the basic syntax used for sending an e-mail with xp_SMTPSendMail80 is shown.

    © CNET Networks - Submitted by Joshua Hoskins
  • Basic e-mail in Outlook

    This image shows the format of a basic e-mail as seen in Outlook 2003.

  • Embedding a query in e-mail

    This screenshots shows the format for embedding a query within an e-mail.

  • Query results e-mail

    This image shows the receipt of the e-mail with the embedded query.

  • Sending an HTML e-mail

    This picture shows the syntax of sending an HTML-formatted e-mail with an embedded query.

  • Receiving an HTML e-mail

    This screenshot shows the receipt of the HTML-formatted e-mail with the query embedded.

  • Sending an attachment to multiple recipients

    This picture shows the syntax to use when sending an attachment and sending to multiple recipients.

  • Receiving an attachment e-mail

    This image shows an e-mail received from xp_SMTPSendMail80 with an attachment.

1 of 8
BD

Bill Detwiler is the Editor for Technical Content and Ecosystem at Celonis. He is the former Editor in Chief of TechRepublic and previous host of TechRepublic's Dynamic Developer podcast and Cracking Open, CNET and TechRepublic's popular online show. Previously, Bill was an IT manager in the social research and energy industries. He has bachelor's and master's degrees from the University of Louisville, where he has also lectured on computer crime and crime prevention.