|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
SmtpClient handles and manipulates the SMTP client. More...
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... | |
SmtpClient handles and manipulates the SMTP client.
| void SmtpClient::cancelSend | ( | ) |
Intervene with mail sending.
| void SmtpClient::mailSent | ( | string | , |
| string | , | ||
| QString | , | ||
| SmtpResponseType | |||
| ) |
This event is emitted when an email is sent.
| dest,the | email recipient. |
| subject,the | email subject. |
| body,the | email body. |
| responseType,the | response 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.
| bool SmtpClient::sendMail | ( | string | , |
| string | , | ||
| string | , | ||
| QString | , | ||
| string | , | ||
| string | |||
| ) |
This event is emitted when an email is sent.
| fromEmailId,the | sender's email. |
| toEmailId,the | recipient's email. |
| subject,tthe | email subject. |
| contents,the | email contents. |
| password,the | smtp user password. |
| ipAddr,the | outgoing email server address |