Exemplo n.º 1
0
        public override void SendMessage(string strUser, string strMessage)
        {
            if (strMessage.Length == 0)
            {
                return;
            }

            base.SendMessage(strUser, strMessage);

            MailMessage msg = new MailMessage();

            msg.EmailFrom = m_strLogin;
            msg.AddEmailTo(strUser);
            msg.EmailMessageType = MessageType.Text;
            //msg.EmailMessage = strMessage+"\r\n\r\nThis email is an automated response to a message sent to RemindMe from your account. You can change your account settings by logging in at www.remindme.cc";
            msg.EmailMessage = strMessage;
            msg.EmailSubject = "RemindMe Message";

            Smtp smtp = new Smtp();

            smtp.SmtpServer   = "remindme.cc";
            smtp.SmtpUser     = m_strLogin;
            smtp.SmtpPassword = m_strPassword;
            smtp.SmtpPort     = 26;
            smtp.SendEmail(msg);
        }