EmailAddressCollectionAdd Method (EmailAddress) |
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax Exceptions Examples This sample loads creates new message and adds a recipient to this message as a new
EmailAddress object.
using MailBee;
using MailBee.Mime;
MailMessage msg = new MailMessage();
EmailAddress adr = new EmailAddress("john_doe@domain.com");
msg.To.Add(adr);
Imports MailBee
Imports MailBee.Mime
Dim msg As New MailMessage
Dim adr As EmailAddress = New EmailAddress("john_doe@domain.com")
msg.To.Add(adr)
See Also