Sends a mail message constructed from the specified parameters using the specified SMTP server.
public static void Send(
string from,
string to,
string subject,
string body,
string serverName
)
Public Shared Sub Send( _
ByVal from As String, _
ByVal to As String, _
ByVal subject As String, _
ByVal body As String, _
ByVal serverName As String _
)
public:
static void Send(
String^ from,
String^ to,
String^ subject,
String^ body,
String^ serverName
);
Parameters
- from
- Message sender.
- to
- Comma-separated list of message recipients.
- subject
- The subject of the message.
- body
- The text body of the message.
- serverName
- The server address - either a hostname or a dotted string address.