| SmtpTestMessageEnvelopeAsync Method (String, String) |
Sends message envelope to the SMTP server. Doesn't send or verify message contents.
It can be used to verify if SMTP server accepts sender and recipient addresses.
Namespace:
Limilabs.Client.SMTP
Assembly:
Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax public Task<ISendMessageResult> TestMessageEnvelopeAsync(
string from,
string to
)
Public Function TestMessageEnvelopeAsync (
from As String,
to As String
) As Task(Of ISendMessageResult)
public:
Task<ISendMessageResult^>^ TestMessageEnvelopeAsync(
String^ from,
String^ to
)
member TestMessageEnvelopeAsync :
from : string *
to : string -> Task<ISendMessageResult>
Parameters
- from
- Type: SystemString
From address (FROM). - to
- Type: SystemString
To address (RCPT TO).
Return Value
Type:
TaskISendMessageResultResult of the sending operation. You can examine
Status property to check if the operation succeed.
See Also