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

  • Home
  • SEARCH
  • 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 154673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:01:14+00:00 2026-05-11T10:01:14+00:00

I am trying to send an email with a plain text body and an

  • 0

I am trying to send an email with a plain text body and an alternate html body. However, when I snoop the data going over the network the text portion of the email is lost.

Here is a sample of my coding attempts.

private static MailMessage BuildEmail(string plainText, string htmlBody) {     // Add the alternate body to the message.     ContentType HtmlContentType = new ContentType('text/html');     AlternateView alternate = AlternateView.CreateAlternateViewFromString(htmlBody, HtmlContentType);      ContentType PlainContentType = new ContentType('text/plain');     AlternateView PlainView = AlternateView.CreateAlternateViewFromString(plainText, PlainContentType);      MailMessage mail = new MailMessage(new MailAddress(ToEmail_DEFAULT),         new MailAddress(FromEmail_DEFAULT));      mail.Subject = 'First plain. Html next';     mail.AlternateViews.Add(PlainView);     mail.AlternateViews.Add(alternate);      return mail; } 

http://www.my914.net/images/work/emailProblem.jpg

  • 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. 2026-05-11T10:01:14+00:00Added an answer on May 11, 2026 at 10:01 am

    The problem ending up being the network snooping application. Getting the latest version of the application allowed me to see that the data being sent to the SMTP server was correct and contained both my plain text view and the html text view.

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

Sidebar

Related Questions

Rails 3 defaults to Content-Type: text/plain I'm trying to send and HTML email. How
I am trying to send email programmatically... I have this line of code: _mail.AddAttachmentData(nsd,text/plain,
I'm trying to send a simple plain-text email through my VB.net web application. I've
Trying to send a html email via mail(), however gmail just displays the email
I am trying to send a html email via mail(), however gmail just displays
I am trying to send and email text or/and html versions.. What I do
I'm trying to send an email in Java but when I read the body
I'm trying to send an encrypted email with an attachment from PHP, however, my
i found a way to send plain text email using intent: final Intent emailIntent
I've been trying to use MFMailComposer to send a text file with encrypted data

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.