EmailMessage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EmailMessage(String, EmailRecipients, EmailContent) |
Initializes a new instance of EmailMessage. |
EmailMessage(String, String, EmailContent) |
Initializes a new instance of EmailMessage. |
EmailMessage(String, EmailRecipients, EmailContent)
- Source:
- EmailMessage.cs
- Source:
- EmailMessage.cs
Initializes a new instance of EmailMessage.
public EmailMessage(string senderAddress, Azure.Communication.Email.EmailRecipients recipients, Azure.Communication.Email.EmailContent content);
new Azure.Communication.Email.EmailMessage : string * Azure.Communication.Email.EmailRecipients * Azure.Communication.Email.EmailContent -> Azure.Communication.Email.EmailMessage
Public Sub New (senderAddress As String, recipients As EmailRecipients, content As EmailContent)
Parameters
- senderAddress
- String
Sender email address from a verified domain.
- recipients
- EmailRecipients
Recipients for the email.
- content
- EmailContent
Email content to be sent.
Exceptions
senderAddress
, content
or recipients
is null.
Applies to
EmailMessage(String, String, EmailContent)
- Source:
- EmailMessage.cs
- Source:
- EmailMessage.cs
Initializes a new instance of EmailMessage.
public EmailMessage(string senderAddress, string recipientAddress, Azure.Communication.Email.EmailContent content);
new Azure.Communication.Email.EmailMessage : string * string * Azure.Communication.Email.EmailContent -> Azure.Communication.Email.EmailMessage
Public Sub New (senderAddress As String, recipientAddress As String, content As EmailContent)
Parameters
- senderAddress
- String
Sender email address from a verified domain.
- recipientAddress
- String
Recipients for the email.
- content
- EmailContent
Email content to be sent.
Exceptions
senderAddress
, recipientAddress
or content
is null.
Applies to
Azure SDK for .NET