Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
SmtpClient Class Reference

SmtpClient handles and manipulates the SMTP client. More...

Inheritance diagram for SmtpClient:
Process

Public Member Functions

void mailSent (string, string, QString, SmtpResponseType)
 This event is emitted when an email is sent. More...
 
bool sendMail (string, string, string, QString, string, string)
 This event is emitted when an email is sent. More...
 
void cancelSend ()
 Intervene with mail sending. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

SmtpClient handles and manipulates the SMTP client.

Member Function Documentation

◆ cancelSend()

void SmtpClient::cancelSend ( )

Intervene with mail sending.

◆ mailSent()

void SmtpClient::mailSent ( string  ,
string  ,
QString  ,
SmtpResponseType   
)

This event is emitted when an email is sent.

Parameters
dest,theemail recipient.
subject,theemail subject.
body,theemail body.
responseType,theresponse type. Response types: eSmtpRequest = 1, eSmtpResponseSuccess = 2, eSmtpRequestForward = 3, eSmtpRemoteReceieverDoesNotExist = 4, eSmtpResponseError = 5, eSmtpTimeout = 6, eSmtpPeerReset = 7, eSmtpDnsServerNotFound = 8, eSmtpDnsUnResolvedHostName = 9, eSmtpProtocolError = 10, eSmtpUserNotFound = 11, eSmtpServerDomainError = 12, eSmtpServerNotFound = 13

IPC event.

◆ sendMail()

bool SmtpClient::sendMail ( string  ,
string  ,
string  ,
QString  ,
string  ,
string   
)

This event is emitted when an email is sent.

Parameters
fromEmailId,thesender's email.
toEmailId,therecipient's email.
subject,ttheemail subject.
contents,theemail contents.
password,thesmtp user password.
ipAddr,theoutgoing email server address

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