Hunny Software Library Reference

SmtpClient.SendBytes Method 

Sends mail content as uninterpreted bytes.

[Visual Basic]
Public Function SendBytes( _
   ByVal bytes As Byte(), _
   ByVal length As Integer, _
   ByVal options As Integer _
) As Integer
[C#]
public int SendBytes(
   byte[] bytes,
   int length,
   int options
);

Parameters

bytes
A buffer containing the bytes to send.
length
The number of bytes to send.
options
Set to SmtpClient.LAST if the library should receive a response.

Remarks

This method is an advanced method that can be used to extend the library. The bytes parameter is a byte array containing the bytes to send. The length parameter specifies how many bytes to send. The options parameter can be 0, to indicate that the libary code should not try receive a response after sending the bytes; or SmtpClient.LAST, to indicate that the library code should try to receive a response after sending the bytes.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

SmtpClient Class | Hunny.Mail Namespace