This DLL function sends email.
[C++Builder/Visual C++] long
PS3SendMail(LPCSTR lpszMailSvrAddr, LPCSTR lpszFromAddr, LPCSTR
lpszFromHdr, LPCSTR lpszToAddr, LPCSTR lpszToHdr, LPCSTR
lpszSubject, LPCSTR lpszMessage);
[Delphi] function
PS3SendMail(lpszMailSvrAddr, lpszFromAddr, lpszFromHdr, lpszToAddr,
lpszToHdr, lpszSubject, lpszMessage: PAnsiChar): Longint;
[Visual Basic] Function
PS3SendMail(ByVal lpszMailSvrAddr As String, ByVal lpszFromAddr As
String, ByVal lpszFromHdr As String, ByVal lpszToAddr As String,
ByVal lpszToHdr As String, ByVal lpszSubject As String, ByVal
lpszMessage As String) As Long
Parameters
Name | Explanation |
lpszMailSvrAddr | The address of the mail server (SMTP) sending the email |
lpszFromAddr | The email address of the sender |
lpszFromHdr | The sender's name |
lpszToAddr | The email address of the receiver |
lpszToHdr | The recipent's name |
lpszSubject | The subject of the email |
lpszMessage | The email message (content). |
Return Value
Return Value | Explanation |
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 PS3SendMail DLL function sends email.
In order to start a new line, you must use a newline character (i.e. LF, CR, CRLF, etc.)
If using a dial up connection, please be sure you are connected before executing this function.