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 9212001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:25:33+00:00 2026-06-18T01:25:33+00:00

i want to send email which includes HTML contents with images . so, any

  • 0

i want to send email which includes HTML contents with images. so, any way to send external image within body content not as an attachment.

My image resides under image folder of my project…

  • 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-06-18T01:25:34+00:00Added an answer on June 18, 2026 at 1:25 am

    Assuming you’re using the .net MailMessage type you can set IsBodyHtml = true; and then write your <img> tags as you normally would using absolute paths e.g. www.example.com/images/image.png.

    For cleanliness sake, i read my HTML from an XML file, e.g.

    private MailMessage GetHtmlEmail()
    {
        MailMessage mail = new MailMessage();
        XmlTextReader xReader = new XmlTextReader(Server.MapPath("~/ConfigFiles/Email.xml"));
    
        while (xReader.Read())
        {
            switch (xReader.Name)
            {
                case "ToAddress":
                    mail.To.Add(xReader.ReadElementContentAs(typeof(string), null).ToString());
                    break;
                case "FromAddress":
                    mail.From = new MailAddress(xReader.ReadElementContentAs(typeof(string), null).ToString());
                    break;
                case "Subject":
                    mail.Subject = xReader.ReadElementContentAs(typeof(string), null).ToString();
                    break;
                case "EmailBody":
                    mail.Body = xReader.ReadElementContentAs(typeof(string), null).ToString();
                    break;
                default:
                    break;
            }
        }
    
        return mail;
    }
    

    And the XML file…

    <?xml version="1.0" encoding="utf-8" ?>
    <Email>
        <FromAddress>website@domain.co.uk</FromAddress>
        <ToAddress>to@domain.co.uk</ToAddress>
        <Subject>Contact us enquiry</Subject>
        <EmailBody>
            <![CDATA[
            <html>
               <head>
                  <title>Customer Enquiry</title>
               </head>
                <div valign="top">
                    <!-- center -->
                    <font color="#666666" face="Arial, Helvetica, sans-serif, Verdana" size="2">
                      <p>You have recieved a new customer enquiry.</p>
                      <p><strong>Name: </strong>{0}<br />
                      <strong>Email: </strong>{1}<br />
                      <strong>Tel: </strong>{2}<br /></p>
                      <p><strong>Message: </strong>{3}</p>
                    </font>
                </div>
              </html> 
          ]]>
        </EmailBody>
    </Email>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send email through Java (Any email like from yahoo, gmail, or
I want to send an email from within my iPhone application, primarily because i
I am creating an email software which send email to some accounts. I want
Have been trying on these codes and I want to send a email which
I want to send html email.I am using spring framework Mailsender class to send
I want to create a class which has a function to send email. I
I want to send an email automatically without any user intervention to a particular
I want to create one application which send email with attachment(select file from SD
I am developing an android app in which i want to send (name,email, cell
I created a google web application from which I want to send emails. I've

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.