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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:32:32+00:00 2026-05-27T10:32:32+00:00

I have a simple little email app that allows a user to pick certain

  • 0

I have a simple little email app that allows a user to pick certain options that generate a string and sends out an email. I wanted to see if its possible to add images to the email i.e. a header logo or signature, etc. The research I’ve been looking at is very HTML heavy and I know very little HTML. Can anyone help? My code is as follows…

using System;
using Outlook = Microsoft.Office.Interop.Outlook;
using System.Configuration;

namespace My_EmailSender
{
    public class EmailSender:Notification
    {
        string emailRecipient = ConfigurationManager.AppSettings["emailRecipient"];

        public void SendMail(string message)
        {
            try
            {
                var oApp = new Outlook.Application();
                var oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
                var oRecip = (Outlook.Recipient)oMsg.Recipients.Add(emailRecipient);
                oRecip.Resolve();
                oMsg.Subject = "Email Notification";
                oMsg.Body = message;

                // Display the message before sending could save() also but no need
                oMsg.Send();
                oMsg.Display(true);
                oRecip = null;
                oMsg = null;
                oApp = null;
            }
            catch (Exception e)
            {
                Console.WriteLine("Problem with email execution. Exception caught: ", e);
            }

            return;
        }
    }
}
  • 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-27T10:32:32+00:00Added an answer on May 27, 2026 at 10:32 am

    I would always use System.Net.Mail to send emails but maybe this is a requirement of yours?

    Read up on system.net.mail here.

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

Sidebar

Related Questions

I have a simple little test app written in Flex 3 (MXML and some
I have a simple little code fragment that is frustrating me: HashSet<long> groupUIDs =
I have this simple little batch file program that I wrote but it fails
I have this simple little JavaScript snippet to try and protect my email address
I have my little web application, with simple registration strategy - provide email and
Hi and thanks for looking! Background I have made a simple little app in
A little stuck here. I have a simple question I guess. Given the following
I have a little problem with a simple vbScript. The script has to run
My problem is a little bit hard but simple. I have (or there is)
I've started working on a little ruby project that will have sample implementations of

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.