ReactOS 0.4.16-dev-716-g2b2bdab
smtp_send_request Struct Reference

#include <smtp.h>

Collaboration diagram for smtp_send_request:

Public Attributes

const charfrom
 
const charto
 
const charsubject
 
const charbody
 
smtp_result_fn callback_fn
 
voidcallback_arg
 
u8_t static_data
 

Detailed Description

This structure is used as argument for smtp_send_mail_int(), which in turn can be used with tcpip_callback() to send mail from interrupt context, e.g. like this: struct smtp_send_request req; (to be filled) tcpip_try_callback(smtp_send_mail_int, (void)req);

For member description, see parameter description of smtp_send_mail(). When using with tcpip_callback, this structure has to stay allocated (e.g. using mem_malloc/mem_free) until its 'callback_fn' is called.

Definition at line 54 of file smtp.h.

Member Data Documentation

◆ body

const char* smtp_send_request::body

Definition at line 58 of file smtp.h.

◆ callback_arg

void* smtp_send_request::callback_arg

Definition at line 60 of file smtp.h.

◆ callback_fn

smtp_result_fn smtp_send_request::callback_fn

Definition at line 59 of file smtp.h.

◆ from

const char* smtp_send_request::from

Definition at line 55 of file smtp.h.

◆ static_data

u8_t smtp_send_request::static_data

If this is != 0, data is not copied into an extra buffer but used from the pointers supplied in this struct. This means less memory usage, but data must stay untouched until the callback function is called.

Definition at line 65 of file smtp.h.

◆ subject

const char* smtp_send_request::subject

Definition at line 57 of file smtp.h.

◆ to

const char* smtp_send_request::to

Definition at line 56 of file smtp.h.


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