smtp-client
SMTP Client C Library
mailx Struct Reference
+ Collaboration diagram for mailx:

Data Fields

struct smtpsmtp
 
const char * subject
 
char * body
 
char * server
 
char * port
 
char * user
 
char * pass
 
char * from
 
enum smtp_connection_security connection_security
 
enum smtp_authentication_method auth_method
 
enum smtp_flag smtp_flags
 
struct mailx_addressaddress_list
 
size_t num_address
 
struct mailx_attachmentattachment_list
 
size_t num_attachment
 

Detailed Description

The mailx context structure containing the parameters for setting up the SMTP connection and sending the email.

Definition at line 62 of file mailx.c.

Field Documentation

◆ address_list

struct mailx_address* mailx::address_list

List of email addresses to send to.

Definition at line 123 of file mailx.c.

Referenced by mailx_address_append(), and mailx_send().

◆ attachment_list

struct mailx_attachment* mailx::attachment_list

List of files to attach in the email.

Definition at line 133 of file mailx.c.

Referenced by mailx_append_attachment(), and mailx_send().

◆ auth_method

enum smtp_authentication_method mailx::auth_method

SMTP user account authentication method.

Definition at line 111 of file mailx.c.

Referenced by mailx_init_default_values(), mailx_parse_smtp_option(), and mailx_send().

◆ body

char* mailx::body

Email body text.

Definition at line 76 of file mailx.c.

Referenced by mailx_free(), mailx_send(), and main().

◆ connection_security

enum smtp_connection_security mailx::connection_security

Determine if using a TLS encrypted connection or plain socket.

Definition at line 106 of file mailx.c.

Referenced by mailx_init_default_values(), mailx_parse_smtp_option(), and mailx_send().

◆ from

char* mailx::from

From email address or name.

Definition at line 101 of file mailx.c.

Referenced by mailx_free(), mailx_parse_smtp_option(), and main().

◆ num_address

size_t mailx::num_address

Number of email addresses in address_list.

Definition at line 128 of file mailx.c.

Referenced by mailx_address_append(), and mailx_send().

◆ num_attachment

size_t mailx::num_attachment

Number of attachments in attachment_list.

Definition at line 138 of file mailx.c.

Referenced by mailx_append_attachment(), and mailx_send().

◆ pass

char* mailx::pass

SMTP account password used for authenticating.

Definition at line 96 of file mailx.c.

Referenced by mailx_free(), mailx_parse_smtp_option(), and mailx_send().

◆ port

char* mailx::port

SMTP server port number.

Definition at line 86 of file mailx.c.

Referenced by mailx_free(), mailx_parse_smtp_option(), mailx_send(), and main().

◆ server

char* mailx::server

SMTP server name or IP address.

Definition at line 81 of file mailx.c.

Referenced by mailx_free(), mailx_parse_smtp_option(), mailx_send(), and main().

◆ smtp

struct smtp* mailx::smtp

SMTP client context.

Definition at line 66 of file mailx.c.

Referenced by mailx_send().

◆ smtp_flags

enum smtp_flag mailx::smtp_flags

Miscellaneous control flags for smtp-lib.

See smtp_flag for more details.

Definition at line 118 of file mailx.c.

Referenced by mailx_parse_smtp_option(), and mailx_send().

◆ subject

const char* mailx::subject

Email subject line.

Definition at line 71 of file mailx.c.

Referenced by mailx_init_default_values(), mailx_send(), and main().

◆ user

char* mailx::user

SMTP account user name used for authenticating.

Definition at line 91 of file mailx.c.

Referenced by mailx_free(), mailx_parse_smtp_option(), and mailx_send().


The documentation for this struct was generated from the following file: