smtp-client
SMTP Client C Library
|
Data Fields | |
struct smtp * | smtp |
char | subject [SMTP_TEST_SUBJECT_LEN] |
char | body [SMTP_TEST_BODY_LEN] |
char | server [SMTP_MAX_SERVER_LEN] |
char | cafile [SMTP_MAX_CAFILE_PATH] |
char | port [SMTP_MAX_PORT_LEN] |
char | port_tls [SMTP_MAX_PORT_LEN] |
char | user [SMTP_MAX_EMAIL_LEN] |
char | pass [SMTP_MAX_PASS_LEN] |
char | email_from [SMTP_MAX_EMAIL_LEN] |
char | email_to [SMTP_MAX_EMAIL_LEN] |
char | email_to_2 [SMTP_MAX_EMAIL_LEN] |
char | email_to_3 [SMTP_MAX_EMAIL_LEN] |
Stores details from the server configuration file.
Most of these fields get loaded from separate configuration files because those files contain sensitive account information.
char smtp_test_config::body[SMTP_TEST_BODY_LEN] |
Email body text.
Definition at line 145 of file test.c.
Referenced by smtp_func_test_attachment_fp(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_auth(), smtp_func_test_connection_security(), and smtp_func_test_gmail_attachment().
char smtp_test_config::cafile[SMTP_MAX_CAFILE_PATH] |
Path to server certificate file.
Definition at line 159 of file test.c.
Referenced by smtp_func_test_all_cafile(), smtp_test_config_load_from_file(), and test_failure_open().
char smtp_test_config::email_from[SMTP_MAX_EMAIL_LEN] |
The email displayed in the email from section.
Definition at line 184 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_body(), smtp_func_test_all_names(), smtp_func_test_all_nodebug(), smtp_func_test_attachment_fp(), smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_header_custom_date(), smtp_func_test_header_long(), smtp_func_test_header_null_no_date(), smtp_func_test_html(), smtp_func_test_html_with_plaintext(), smtp_func_test_send_email(), smtp_test_config_load_from_file(), test_failure_address_add(), test_failure_timeout(), and test_smtp_open_default().
char smtp_test_config::email_to[SMTP_MAX_EMAIL_LEN] |
Email destination address.
Definition at line 189 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_body(), smtp_func_test_all_names(), smtp_func_test_all_nodebug(), smtp_func_test_attachment_fp(), smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_header_custom_date(), smtp_func_test_header_long(), smtp_func_test_header_null_no_date(), smtp_func_test_html(), smtp_func_test_html_with_plaintext(), smtp_func_test_send_email(), smtp_test_config_load_from_file(), and test_smtp_open_default().
char smtp_test_config::email_to_2[SMTP_MAX_EMAIL_LEN] |
Email destination address (2nd).
Definition at line 194 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_names(), smtp_test_config_load_from_file(), and test_smtp_open_default().
char smtp_test_config::email_to_3[SMTP_MAX_EMAIL_LEN] |
Email destination address (3rd).
Definition at line 199 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_names(), and smtp_test_config_load_from_file().
char smtp_test_config::pass[SMTP_MAX_PASS_LEN] |
Account password.
Definition at line 179 of file test.c.
Referenced by smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_send_email(), smtp_test_config_load_from_file(), and test_failure_auth().
char smtp_test_config::port[SMTP_MAX_PORT_LEN] |
Server port number.
Definition at line 164 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_body(), smtp_func_test_all_cafile(), smtp_func_test_all_connection_security(), smtp_func_test_all_names(), smtp_func_test_all_nodebug(), smtp_func_test_all_status_code_get(), smtp_func_test_all_write(), smtp_func_test_attachment_fp(), smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_auth(), smtp_func_test_gmail_attachment(), smtp_func_test_header_custom_date(), smtp_func_test_header_long(), smtp_func_test_header_null_no_date(), smtp_func_test_html(), smtp_func_test_html_with_plaintext(), smtp_func_test_server_gmail(), smtp_func_test_server_secureserver(), smtp_test_config_load_from_file(), test_failure_address_add(), test_failure_attachment_add(), test_failure_close(), test_failure_header_add(), test_failure_misc(), test_failure_open(), test_failure_status_code_set(), test_failure_timeout(), and test_smtp_open_default().
char smtp_test_config::port_tls[SMTP_MAX_PORT_LEN] |
Server port number for direct TLS connection.
Definition at line 169 of file test.c.
Referenced by smtp_func_test_all_connection_security(), and smtp_test_config_load_from_file().
char smtp_test_config::server[SMTP_MAX_SERVER_LEN] |
Server name or IP address.
Definition at line 154 of file test.c.
Referenced by smtp_func_test_all_address(), smtp_func_test_all_body(), smtp_func_test_all_names(), smtp_func_test_all_nodebug(), smtp_func_test_all_status_code_get(), smtp_func_test_all_write(), smtp_func_test_attachment_fp(), smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_header_custom_date(), smtp_func_test_header_long(), smtp_func_test_header_null_no_date(), smtp_func_test_html(), smtp_func_test_html_with_plaintext(), smtp_func_test_send_email(), smtp_func_test_server_secureserver(), smtp_test_config_load_from_file(), test_failure_address_add(), test_failure_attachment_add(), test_failure_close(), test_failure_header_add(), test_failure_misc(), test_failure_open(), test_failure_status_code_set(), test_failure_timeout(), and test_smtp_open_default().
struct smtp* smtp_test_config::smtp |
SMTP client context.
Definition at line 135 of file test.c.
Referenced by smtp_address_add_check(), smtp_auth_check(), smtp_close_check(), smtp_func_test_all_address(), smtp_func_test_all_body(), smtp_func_test_all_names(), smtp_func_test_all_nodebug(), smtp_func_test_all_status_code_get(), smtp_func_test_all_write(), smtp_func_test_attachment_fp(), smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_header_custom_date(), smtp_func_test_header_long(), smtp_func_test_header_null_no_date(), smtp_func_test_html(), smtp_func_test_html_with_plaintext(), smtp_func_test_send_email(), smtp_func_test_server_secureserver(), smtp_header_add_check(), smtp_mail_check(), test_failure_address_add(), test_failure_attachment_add(), test_failure_auth(), test_failure_close(), test_failure_header_add(), test_failure_mail(), test_failure_misc(), test_failure_open(), test_failure_status_code_set(), test_failure_timeout(), and test_smtp_open_default().
char smtp_test_config::subject[SMTP_TEST_SUBJECT_LEN] |
Email subject line.
Definition at line 140 of file test.c.
Referenced by smtp_func_test_attachment_fp(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_auth(), smtp_func_test_connection_security(), and smtp_func_test_gmail_attachment().
char smtp_test_config::user[SMTP_MAX_EMAIL_LEN] |
Account user name.
Definition at line 174 of file test.c.
Referenced by smtp_func_test_attachment_long_text(), smtp_func_test_attachment_mem(), smtp_func_test_attachment_path(), smtp_func_test_attachment_pdf(), smtp_func_test_gmail_attachment(), smtp_func_test_send_email(), smtp_test_config_load_from_file(), and test_failure_auth().