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

net::SMTPMailer Class Reference

A class for sending emails trough a SMTP server. More...

#include <SMTPMailer.h>

List of all members.

Public Member Functions

 SMTPMailer ()
 Constructor for SMTPMailer.
int SendMail ()
 Sends the mail.
void setSMTPHost (string aHost)
 Sets the SMTP host.
void setSMTPPort (int aPort)
 Sets the SMTP host.
void setMailData (string aData)
 Sets the Mail body.
void setMailFrom (string aFrom)
 Sets the Mail sender.
void setMailTo (string aTo)
 Sets the Mail recipient.
void setMailSubject (string aSubject)
 Sets the Mail body.
string getError ()
 Get the error text if the mail couldn't be sent.


Detailed Description

A class for sending emails trough a SMTP server.

Author:
Laurent Moutel


Member Function Documentation

int net::SMTPMailer::SendMail  ) 
 

Sends the mail.

Returns:
-1 on error, else 0

void net::SMTPMailer::setMailData string  aData  ) 
 

Sets the Mail body.

Parameters:
aData A string object containing the mail data

void net::SMTPMailer::setMailFrom string  aFrom  ) 
 

Sets the Mail sender.

Parameters:
aFrom A string object containing the email address of the sender

void net::SMTPMailer::setMailSubject string  aSubject  ) 
 

Sets the Mail body.

Parameters:
aSubject A string object containing the mail subject

void net::SMTPMailer::setMailTo string  aTo  ) 
 

Sets the Mail recipient.

Parameters:
aTo A string object containing the email address of the recipient

void net::SMTPMailer::setSMTPHost string  aHost  ) 
 

Sets the SMTP host.

Parameters:
aHost A string object containing the SMTP hostname

void net::SMTPMailer::setSMTPPort int  aPort  ) 
 

Sets the SMTP host.

Parameters:
aPort A string object containing the SMTP port


The documentation for this class was generated from the following file:
Generated on Fri May 19 23:12:37 2006 for common by  doxygen 1.4.4