System.Net.Mail.MailMessage.MailMessage C# (CSharp) Method

MailMessage() public method

public MailMessage ( System.Net.Mail.MailAddress from, System.Net.Mail.MailAddress to ) : System
from System.Net.Mail.MailAddress
to System.Net.Mail.MailAddress
return System
        public MailMessage(MailAddress from, MailAddress to)
        {
            if (from == null)
                throw new ArgumentNullException(nameof(from));

            if (to == null)
                throw new ArgumentNullException(nameof(to));

            _message = new Message(from, to);
        }

Same methods

MailMessage::MailMessage ( ) : System
MailMessage::MailMessage ( string from, string to ) : System
MailMessage::MailMessage ( string from, string to, string subject, string body ) : System