PowerTCP Mail for .NET
Send(String,String,String,String) Method




Recipient of the email.
Sender of the email.
Subject of the email.
Body text of the email.
Send a basic text email.
Syntax
Public Overloads Function Send( _
   ByVal toAddress As String, _
   ByVal fromAddress As String, _
   ByVal subject As String, _
   ByVal text As String _
) As SmtpResult
Dim instance As Smtp
Dim toAddress As String
Dim fromAddress As String
Dim subject As String
Dim text As String
Dim value As SmtpResult
 
value = instance.Send(toAddress, fromAddress, subject, text)
public SmtpResult Send( 
   string toAddress,
   string fromAddress,
   string subject,
   string text
)
public: SmtpResult* Send( 
   string* toAddress,
   string* fromAddress,
   string* subject,
   string* text
) 
public:
SmtpResult^ Send( 
   String^ toAddress,
   String^ fromAddress,
   String^ subject,
   String^ text
) 

Parameters

toAddress
Recipient of the email.
fromAddress
Sender of the email.
subject
Subject of the email.
text
Body text of the email.

Return Value

SmtpResult that describes the result.
Exceptions
ExceptionDescription
ProtocolExceptionBad SMTP protocol response received from server.
System.Net.Sockets.SocketExceptionA socket failure.
System.FormatExceptionBad address format.
Remarks
The quickest and easiest way to send a basic text email. An SmtpResult object is returned containing data about the message sent such as the bytes of data sent.
See Also

Reference

Smtp Class
Smtp Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic