Archive for Aprile 17th, 2008

QuickMail

CodeKeep C# Feed Aprile 17th, 2008

Description: Simple class to send basic smtp email

Link: http://www.codekeep.net/snippets/49bfa615-92af-4022-a212-cfe68ee119b1.aspx

    public static class QuickMail
    {
        public static void SendMail(string to, string subject, string messageText, bool isHtml)
        { SendMail("default@default.com", to, subject, messageText.Trim(), isHtml); }

        public static void SendMail(string from, string to, string subject, string messageText, bool isHtml)
        {
            SmtpClient mymail = new SmtpClient(ConfigurationManager.AppSettings["localsmtp"]);
            MailMessage message = new MailMessage(from, to, subject, messageText);
            message.IsBodyHtml = isHtml;
            mymail.Send(message);
        }

    }

New demo version available

maurodx Aprile 17th, 2008

Today i have implemented some function on the backend so if you want to try out my client you have to download the installation again.

Let me know your feature request! Write in the FORUM

See you!