Compounds | |||
![]() | ![]() | struct | w3Mail |
Functions | |||
![]() | ![]() | w3Mail* | w3CreateMail (char* rcpt, char *sender, char *data) |
![]() | ![]() | boolean | w3DestroyMail (w3Mail *mail) |
![]() | ![]() | boolean | w3SendMail (w3Mail *mail, const char *mailer, int port) |
![]() | ![]() | boolean | w3SendMailFile (const char* path) |
w3Mail * w3CreateMail (char * rcpt, char * sender, char * data) |
Takes recipient, sender and mail body and allocates a new w3Mail structure of it.
boolean w3DestroyMail (w3Mail * mail) |
Destroys the given mail.
boolean w3SendMail (w3Mail * mail, const char * mailer, int port) |
Sends the given mail to the SMTP server given by mailer
running on port port
.
boolean w3SendMailFile (const char * path) |
Sends the file path
, containing a mail message.
The file must conform to the following specification:
First line: Recipient
Second line: Sender
Third line: mailer
Fourth line: port number on which the mailer accepts connections
The following lines contain the mail body, including ALL headers the sender wants to be sent (including sender and recipient headers).