Mime Message(IEnumerableInternet Address, IEnumerableInternet Address, String, Mime Entity) Constructor
Initialize a new instance of the MimeMessage class.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimeMessage(
IEnumerable<InternetAddress> from,
IEnumerable<InternetAddress> to,
string subject,
MimeEntity body
)Parameters
- from IEnumerableInternetAddress
- The list of addresses in the From header.
- to IEnumerableInternetAddress
- The list of addresses in the To header.
- subject String
- The subject of the message.
- body MimeEntity
- The body of the message.
Remarks
Creates a new MIME message, specifying details at creation time.
Exceptions
| ArgumentNullException |
from is . -or- to is . -or- subject is . |