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
SmtpServer Class Reference

SmtpServer handles and manipulates the SMTP service. More...

Inheritance diagram for SmtpServer:
Process

Public Member Functions

void setEnable (bool)
 Enables or disables the SMTP service. More...
 
bool isEnabled ()
 Returns true if the SMTP service is enabled, otherwise false. More...
 
string getServerDomainName ()
 Returns the domain name of the SMTP server. More...
 
void setServerDomainName (string)
 Sets the domain name for the SMTP server. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

SmtpServer handles and manipulates the SMTP service.

Member Function Documentation

◆ getServerDomainName()

string SmtpServer::getServerDomainName ( )

Returns the domain name of the SMTP server.

Returns
string, the domain name of the SMTP server.

◆ isEnabled()

bool SmtpServer::isEnabled ( )

Returns true if the SMTP service is enabled, otherwise false.

Parameters
bool,trueif the SMTP service is enabled, otherwise false.

◆ setEnable()

void SmtpServer::setEnable ( bool  )

Enables or disables the SMTP service.

Parameters
bEnable,trueto enable the SMTP service, false to disable it.

◆ setServerDomainName()

void SmtpServer::setServerDomainName ( string  )

Sets the domain name for the SMTP server.

Parameters
name,thedomain name for the SMTP server.

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