Main Page   Class Hierarchy   Compound List   File List   Compound Members  

wxSMTP Class Reference

Implementation of the sendmail class for SMTP email sending. More...

#include <smtp.h>

Inheritance diagram for wxSMTP::

wxCmdlineProtocol List of all members.

Public Methods

void Send (wxEmailMessage *pMessage)
 Called by Sendmail::Send(). More...

void EvaluateLine (const wxString &line)
 Is called for every line input. More...

void OnConnect (wxSocketEvent &event)
 Is called if successfully connected to the server. More...

void ChangeState (const MailState &mailState)
 Changes the internal state. More...

void SendNextRecipient ()
 Is called by the SendMailFromState, if the SMTP server has acknowledged. More...

void OnRecipientError ()
 Is called by RcptListState if the SMTP server denied the current recipient. More...

void OnRecipientSuccess ()
 Is called by RcptListState if the SMTP server accepts the current recipient. More...

void OnDataSuccess ()
 Is called by DataState if the data was sent successfully. More...

void SendFrom ()
 Is called by HeloState to indicate that the from command can be sent. More...

void SendData ()
 Is called by StartDataState to indicate that the DATA command can be sent. More...


Detailed Description

Implementation of the sendmail class for SMTP email sending.

Definition at line 55 of file smtp.h.


Member Function Documentation

void wxSMTP::ChangeState const MailState   mailState
 

Changes the internal state.

Parameters:
pMailState  The new state.
See also:
MailState.

Definition at line 67 of file smtp.cpp.

Referenced by InitialState::onConnect(), StartDataState::onResponse(), SendMailFromState::onResponse(), HeloState::onResponse(), ConnectedState::onResponse(), and SendNextRecipient().

void wxSMTP::EvaluateLine const wxString &    line [virtual]
 

Is called for every line input.

Parameters:
line  The server response.

Reimplemented from wxCmdlineProtocol.

Definition at line 35 of file smtp.cpp.

References MailState::onResponse().

void wxSMTP::OnConnect wxSocketEvent &    event [virtual]
 

Is called if successfully connected to the server.

Parameters:
event  The wxSOCKET_CONNECTION event.

Reimplemented from wxCmdlineProtocol.

Definition at line 46 of file smtp.cpp.

References MailState::onConnect().

void wxSMTP::OnDataSuccess  
 

Is called by DataState if the data was sent successfully.

Definition at line 93 of file smtp.cpp.

References wxSMTPListener::OnDataSent().

Referenced by DataState::onResponse().

void wxSMTP::OnRecipientError  
 

Is called by RcptListState if the SMTP server denied the current recipient.

Definition at line 83 of file smtp.cpp.

References wxSMTPListener::OnRecipientAdded().

Referenced by RcptListState::onResponse().

void wxSMTP::OnRecipientSuccess  
 

Is called by RcptListState if the SMTP server accepts the current recipient.

Definition at line 88 of file smtp.cpp.

References wxSMTPListener::OnRecipientAdded().

Referenced by RcptListState::onResponse().

void wxSMTP::Send wxEmailMessage   pMessage
 

Called by Sendmail::Send().

See also:
Sendmail::Send()

Definition at line 51 of file smtp.cpp.

References wxRecipientsIterator::GetNext(), wxEmailMessage::GetRecipientsIterator(), and wxRecipientsIterator::HasNext().

Referenced by SendDialog::SendDialog().

void wxSMTP::SendData  
 

Is called by StartDataState to indicate that the DATA command can be sent.

Definition at line 103 of file smtp.cpp.

References wxEmailMessage::Encode().

Referenced by StartDataState::onResponse().

void wxSMTP::SendFrom  
 

Is called by HeloState to indicate that the from command can be sent.

Definition at line 98 of file smtp.cpp.

References wxEmailMessage::GetFrom(), and wxCmdlineProtocol::Write().

Referenced by HeloState::onResponse().

void wxSMTP::SendNextRecipient  
 

Is called by the SendMailFromState, if the SMTP server has acknowledged.

This method sends then the next recipient, until all recipients have been sent. Then the StartDataState will be set.

Definition at line 72 of file smtp.cpp.

References ChangeState(), and wxCmdlineProtocol::Write().

Referenced by RcptListState::onResponse(), and SendMailFromState::onResponse().


Generated on Mon May 6 01:14:20 2002 for Wino by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001