Sends a mail message constructed from the specified parameters by submitting it directly to the recipients' SMTP servers.

Namespace:  Rebex.Net
Assembly:  Rebex.Smtp (in Rebex.Smtp.dll)

Syntax

Visual Basic
Public Shared Function SendDirect ( _
	from As String, _
	to As String, _
	subject As String, _
	body As String _
) As SmtpRejectedRecipient()
C#
public static SmtpRejectedRecipient[] SendDirect(
	string from,
	string to,
	string subject,
	string body
)

Parameters

from
Type: System..::..String
Message sender.
to
Type: System..::..String
Comma-separated list of message recipients.
subject
Type: System..::..String
The subject of the message.
body
Type: System..::..String
The text body of the message.

Remarks

Only supported on Windows platforms.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also