Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

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 (GSocket *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)=0
virtual bool SendEnd (GStringPipe *Sink)=0
 Finishes the mail send.

Detailed Description

Mail sending protocol.


Member Function Documentation

virtual bool MailSink::Open GSocket 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
[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 Oct 26 14:47:05 2005 for Lgi by  doxygen 1.4.1