MailSink Class Reference

Mail sending protocol. More...

#include <Mail.h>

Inheritance diagram for MailSink:

MailProtocol MailSmtp

List of all members.

Public Member Functions

virtual bool Open (GSocketI *S, char *RemoteHost, char *LocalDomain, char *UserName, char *Password, int Port, int Flags)=0
 Connection setup/shutdown.
virtual bool Close ()=0
 Close the connection.
virtual GStringPipeSendStart (List< AddressDescriptor > &To, AddressDescriptor *From, MailProtocolError *Err=0)=0
virtual bool SendEnd (GStringPipe *Sink)=0
 Finishes the mail send.


Detailed Description

Mail sending protocol.

Member Function Documentation

virtual bool MailSink::Open ( GSocketI S,
char *  RemoteHost,
char *  LocalDomain,
char *  UserName,
char *  Password,
int  Port,
int  Flags 
) [pure virtual]

Connection setup/shutdown.

Parameters:
S  The transport layer to use
RemoteHost  The host to connect to
LocalDomain  The local domain
UserName  The sink username (or NULL)
Password  The sink password (or NULL)
Port  The port to connect with or 0 for default (25)
Flags  Options: Use any of MAIL_SINK_STARTTLS, MAIL_SINK_AUTH, MAIL_SINK_USE_PLAIN, MAIL_SINK_USE_LOGIN or'd together.

Implemented in MailSmtp.

virtual GStringPipe* MailSink::SendStart ( List< AddressDescriptor > &  To,
AddressDescriptor From,
MailProtocolError *  Err = 0 
) [pure virtual]

Write the email's contents into the GStringPipe returned from SendStart and then call SendEnd to finish the transaction

Implemented in MailSmtp.


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

Generated on Wed Dec 1 15:41:05 2010 for Lgi by  doxygen 1.5.7.1