Get SMTP Server

API Type

Web Services

Description

Retrieves the SMTP server of the current server configuration.

Syntax

public virtual string GetSmtpServer();

Parameters

Name Description
None Not Applicable

Output

A string that contains the name of the AgilePoint system's SMTP server.

Example

IWFAdminService svc = GetAdminService();

try
	{
    string smtpServer = svc.GetSmtpServer();
    Console.WriteLine("SMTP Server Name = '" + smtpServer + "'");    
	}

catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}
    
//This example produces the following results:
//SMTP Server Name = 'smtp.vitinfotech.com'

Supported Versions

4.6 and higher