Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7429881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:03:01+00:00 2026-05-29T09:03:01+00:00

For my first question, I have your typical web e-com scenario where the user

  • 0

For my first question, I have your typical web e-com scenario where the user can order various products and then receive confirmation emails. I’ve been doing a lot of searching on the best way to send emails for this application, and I am hoping someone can point me in the right directions.

I can send plain text confirm emails from either the app or the database just fine, but now I want to change things up by creating a series of HTML template to use when sending emails. There will be multiple HTML templates, and multiple email contents. When the user makes an order, the order is recorded in the database, which then determines, via stored proc, the type of product/order, and selects the appropriate template file name, email content and replaces all the key text with user/order information.

At the same time, I’d like the email encoded with the text version as well, so I can send out one email containing both types, and be done.

Is it possible to do this in SQL Server 2008 R2, or should I send the content information back to the app and then send the email? The problem I am worried about with the latter is, it may cause some delay on the site as it communicates back and forth with the database.

Further, I’d like to switch to Amazon SES, which is easily used with .Net, but I have not yet been able to set up with SQL 2008 R2, so I’m not sure if this is a mistake on my side, or a compatibility issue.

The basics:
Application: .Net 4.0
Database: SQL 2008 R2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:03:02+00:00Added an answer on May 29, 2026 at 9:03 am

    The key requirement here is sending the HTML and text versions of the message in the same email. SQL Server database mail doesn’t support sending multi-part MIME messages – if you want to do this, you will need to send the mail from your application.

    Command reference for sp_send_dbmail – note that the @body_format parameter can be either HTML or text – not both.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello this is may first question and I have found so far the following
Here's my first question at SO. I have a internal application for my company
this is my first question.. so, here we go. i have a site, 100%
Greetings to all! This is my first question here on stackoverflow. I have a
I have question about normalization. Suppose I have an applications dealing with songs. First
i have a question about using GalleryView. At first, i set five default images
I'm creating my first real binary parser (a tiff reader) and have a question
this is my first time posting here, I have a question which I have
I have a simple question related to one-line programming. First an example: function test(a)
First of all many thanks for clicking into my question. I have a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.