EMail for sending from the RedDot server. An email can be send via Session.SendMailFromCurrentUserAccount and . Use plain text for Message and Subject.
Beispiel #1
0
 public void SendMailFromCurrentUserAccount(EMail mail)
 {
     SendEmail(ServerManager.Users.Current.EMail, mail);
 }
Beispiel #2
0
        public void SendMailFromSystemAccount(EMail mail)
        {
            IApplicationServer server = ServerManager.ApplicationServers.First();
            string fromAddress = server.From;

            SendEmail(fromAddress, mail);
        }
Beispiel #3
0
        private void SendEmail(string fromAddress, EMail mail)
        {
            //@"<ADMINISTRATION action=""sendmail"" to=""{0}"" subject=""{1}"" message=""{2}"" from=""{3}"" plaintext=""1"">{2}</ADMINISTRATION>";
            const string SEND_EMAIL =
                @"<ADMINISTRATION action=""sendmail"" to=""{0}"" subject=""{1}"" from=""{3}"" plaintext=""1"">{2}</ADMINISTRATION>";

            ExecuteRQL(SEND_EMAIL.RQLFormat(mail.To, mail.HtmlEncodedSubject, mail.HtmlEncodedMessage, fromAddress));
        }