smtp-client
SMTP Client C Library
|
Test the smtp-client CPP wrapper. More...
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Test the smtp-client CPP wrapper.
Example program demonstrating how to use the CPP wrapper class.
This software has been placed into the public domain using CC0.
Definition in file test_cpp_wrapper.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main program entry point for the example smtp-client CPP class wrapper.
[in] | argc | Number of arguments in argv . |
[in] | argv | String array containing the program name and any optional parameters described above. |
0 | Email has been sent. |
1 | An error occurred while sending email. Although unlikely, an email can still get sent even after returning with this error code. |
Definition at line 25 of file test_cpp_wrapper.cpp.
References SMTPMail::address_add(), SMTPMail::auth(), SMTPMail::close(), SMTPMail::header_add(), SMTPMail::mail(), SMTPMail::open(), SMTP_ADDRESS_FROM, SMTP_ADDRESS_TO, SMTP_AUTH_NONE, SMTP_DEBUG, SMTP_SECURITY_NONE, and SMTPMailException::what().