Ejemplo n.º 1
0
        private Message SendMessageWithSignature(string plainTextSignature, string htmlSignature, string message)
        {
            _domain.SignatureEnabled         = true;
            _domain.AddSignaturesToLocalMail = true;

            _account.SignatureEnabled   = true;
            _account.SignaturePlainText = plainTextSignature;
            _account.SignatureHTML      = htmlSignature;
            _account.Save();

            SmtpClientSimulator.StaticSendRaw(_account.Address, _account.Address, message);

            return(CustomAsserts.AssertGetFirstMessage(_account, "Inbox"));
        }