Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Post /settings/integration/email/test

Post /settings/integration/email/test

Description

Sends a test e-mail to the supplied address, either using the current settings or those supplied in this request.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name

Required

Type

smtpTimeout

Required

Integer
smtpConnectionTimeout Required Integer
emailPassword Required String
emailAuthType Required String
emailPort Required String

emailUsername

Required

String

emailServer

Required

String

emailAuth

Required

String

emailSender

Required

String

alwaysSendAsSender

Required

Boolean

email

Required

String

recipient

Required

String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/integration/email/test

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

smtpTimeout: xx

smtpConnectionTimeout: xx

emailPassword: "xxxxxxxxxx"

emailAuthType: "xxxxxxxxxx"

emailPort: "xxxxxxxxxx"

emailUsername: "xxxxxxxxxx"

emailServer: "xxxxxxxxxx"

emailAuth: "xxxxxxxxxx"

emailSender: "xxxxxxxxxx"

alwaysSendAsSender: TRUE

email: "xxxxxxxxxx"

recipient: "xxxxxxxxxx"

Sample Response

{

"status": "string",

"errorMessage": "string",

"results": []

}

Post /settings/integration/email/test

Post /settings/integration/email/test

Description

Sends a test e-mail to the supplied address, either using the current settings or those supplied in this request.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name

Required

Type

smtpTimeout

Required

Integer
smtpConnectionTimeout Required Integer
emailPassword Required String
emailAuthType Required String
emailPort Required String

emailUsername

Required

String

emailServer

Required

String

emailAuth

Required

String

emailSender

Required

String

alwaysSendAsSender

Required

Boolean

email

Required

String

recipient

Required

String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/integration/email/test

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

smtpTimeout: xx

smtpConnectionTimeout: xx

emailPassword: "xxxxxxxxxx"

emailAuthType: "xxxxxxxxxx"

emailPort: "xxxxxxxxxx"

emailUsername: "xxxxxxxxxx"

emailServer: "xxxxxxxxxx"

emailAuth: "xxxxxxxxxx"

emailSender: "xxxxxxxxxx"

alwaysSendAsSender: TRUE

email: "xxxxxxxxxx"

recipient: "xxxxxxxxxx"

Sample Response

{

"status": "string",

"errorMessage": "string",

"results": []

}