POST
/
profiles
/
sendTestEmail
curl --request POST \
  --url http://base.url.com/profiles/sendTestEmail \
  --header 'Content-Type: application/json' \
  --header 'x-phishy-api-key: <api-key>' \
  --data '{
  "host": "<string>",
  "port": 123,
  "is_secure": false,
  "ignore_cert_errors": false,
  "username": "<string>",
  "password": "<string>",
  "from_address": "<string>",
  "email": "[email protected]",
  "first_name": "<string>",
  "last_name": "<string>",
  "position": "<string>"
}'
[
  {
    "name": "<string>",
    "method": "<string>",
    "fromAddress": "<string>",
    "mailServer": "<string>",
    "mailServerPort": 123,
    "customPort": false,
    "useSSLTLS": false,
    "lastUpdatedBy": "<string>",
    "lastModified": "<string>"
  }
]

Authorizations

x-phishy-api-key
string
header
required

Body

application/json
Sent Test Email
host
string
required

SMTP server host address

port
integer
required

SMTP server port

is_secure
boolean
default:false
required

Indicates if the connection should be secured (SSL/TLS)

ignore_cert_errors
boolean
default:false
required

Specifies if SSL/TLS certificate errors should be ignored

username
string
required

Username for SMTP authentication

password
string
required

Password for SMTP authentication

from_address
string
required

The email address to use in the 'From' field

email
string
required

The recipient email address

first_name
string
required

First name of the user

last_name
string
required

Last name of the user

position
string
required

Position or title of the user

Response

200
application/json
Email sent
name
string
required

Name of the user

method
string
required

Method used for the profile

fromAddress
string
required

Originating address of the profile

mailServer
string
required

Mail server address used for the profile

mailServerPort
integer
required

Port used by the mail server

customPort
boolean
default:false
required

Indicates if a custom port is used

useSSLTLS
boolean
default:false
required

Indicates if SSL/TLS is used for the connection

lastUpdatedBy
string

User who last updated the profile

lastModified
string

Date and time when the profile was last modified