Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PSMTPClient::BeginMessage ( const PString from,
const PString to,
BOOL  eightBitMIME = FALSE 
)

Begin transmission of a message using the SMTP socket as a client. This negotiates with the remote server and establishes the protocol state for data transmission. The usual Write() or stream commands may then be used to transmit the data itself.

Returns:
TRUE if message was handled, FALSE if an error occurs.
Parameters:
from  User name of sender.
to  User name of recipient.
eightBitMIME  Mesage will be 8 bit MIME.

Definition at line 291 of file inetmail.cxx.

Referenced by PRFC822Channel::SendWithSMTP().

{
  fromAddress = from;
  toNames.RemoveAll();
  toNames.AppendString(to);
  eightBitMIME = useEightBitMIME;
  return _BeginMessage();
}


Generated by  Doxygen 1.6.0   Back to index