This method sends email.
[Visual Basic] Public Function
SendMail(ByVal mailSeverAddress As String, ByVal fromAddress As
String, ByVal fromHeader As String, ByVal toAddress As String,
ByVal toHeader As String, ByVal subject As String, ByVal message As
String) As Integer
[C#] public int SendMail(string
mailSeverAddress, string fromAddress, string fromHeader, string
toAddress, string toHeader, string subject, string message);
Parameters
mailSeverAddress
The sending mail server address
(SMTP)
fromAddress
The sender's mail address
fromHeader
The sender's name
toAddress
The recipient's mail address
toHeader
The recipient's name
subject
The email subject
message
The email content
Return Value
Value | Explanation |
-1 | The file set in the DllFileName property is disabled. |
0 | Message Sent |
1 | Must have Winsock version 1.1 or above |
2 | Unable to find the SMTP mail server |
3 | Unable to open mail server socket |
4 | Failed to connect to mail server socket |
5 | Incorrect or missing parameters |
6 | Memory error |
7 | Transmission error |
Explanation
The SendMail method sends email.
In order to start a new line, you must include code for a new line in your message string.
If using a dial up connection, please be sure you are connected before executing this method.
Also See
PasswordProtect Members | Newtone.ProtectKit.Win.PasswordProtect