• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

Sending an email from .net remoting software

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.


1 Solution
smprossAuthor Commented:
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?

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;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now