Sending an email from .net remoting software

Posted on 2006-04-08
Last Modified: 2010-04-16
Hi All,
I am asking this question for my development team.  We have created a .net remoting application in C#.  We have a server manager and a thick client.  The server manager currently communicates with the SQL server and the accounting software.  The development team would like to have the application create and send an email automatically after the user clicks accept on one of the winforms. THey do not want Outlook or any other email client to be displayed.  This should completely happen in the background.  The address of the recipient will be setup on one of the other winforms.  So here are my questions...

1.  How can this be done?  Is there an object in VS 2003 that is already capable of doing this?

2.  SHould the client or the server manager create and send the email?

3.  Does Microsoft Exchange or another email system need to be available on the LAN or can the application send the email directly to the email recipient's email server.

I am sure that this is not as easy as I am making it out to be.  But I am looking for some information so that my development team can begin the process of adding this component.

Any help would be  greatly appreciated.


Question by:smpross
    LVL 1

    Accepted Solution


    Author Comment

    I would like to have the system send the email without any user interation.  The email should be send without displaying a GUI.

    Any suggestions?


    Expert Comment

    in it's simplest form here.

    using System.Net.Mail;

    MailMessage mail = new MailMessage(fromAddress, toAddress);
                mail.Subject = "Subject Here";
                mail.IsBodyHtml = true; // true/false value
                mail.Priority = MailPriority.Normal;
                mail.Body = "Body Message"
                SmtpClient mailClient = new SmtpClient(mailServer);
            catch (Exception ex)
                mail = null;

    Featured Post

    Hire Top Freelancers to Complete C# Projects

    Source the talented Expert Exchange community
    for top quality work on your C# projects.

    Hire the best. Collaborate easily. Get quality work.

    Join & Write a Comment

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now