Hunny Software Library Reference

SmtpClient.Vrfy Method 

Sends the VRFY command.

[Visual Basic]
Public Sub Vrfy( _
   ByVal recipient As String _
)
[C#]
public void Vrfy(
   string recipient
);

Parameters

recipient
The recipient argument of the VRFY command.

Remarks

The VRFY command requests the server to "verify" a recipient address.

The VRFY command is used primarily to debug addresses. A mail administrator can telnet to the SMTP port, type the VRFY command, and view the server's responses. The VRFY command is not used to send mail. Consequently, the VRFY command is an optional command in SMTP, and may not be implemented in all servers. In addition, a mail administrator may disable the VRFY command to unknown clients in order to protect the privacy of its users.

If the server finds the recipient address to be valid, it returns a 25x reply code. If the server finds the address to be invalid, it returns a 55x reply code. If the server refuses to execute the VRFY command for policy reasons, it returns a 252 reply code.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

SmtpClient Class | Hunny.Mail Namespace | VRFY command in the SMTP specification