|
Sending SMTP commands |
|
To send commands to an SMTP server invoke the IssueCommand method and pass the command string as an argument.
Example
This example issues the SMTP HELO command. The HELO command requires a host name or IP address as a parameter.
[C#]
String response = mySmtp.IssueCommand("HELO 10.0.0.1");
[Visual Basic]
Dim response As String = mySmtp.IssueCommand("HELO 10.0.0.1")