w3smtp.h File Reference

Functions for sending email via SMTP. More...


Compounds

struct  w3Mail

Functions

w3Mailw3CreateMail (char* rcpt, char *sender, char *data)
boolean w3DestroyMail (w3Mail *mail)
boolean w3SendMail (w3Mail *mail, const char *mailer, int port)
boolean w3SendMailFile (const char* path)


Detailed Description

Functions for sending email via SMTP.


Function Documentation

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).


Generated at Thu Jun 1 21:36:22 2000 for HTTP Client advanced version by doxygen  written by Dimitri van Heesch, © 1997-1999