Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

sendTestEmail method

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

It is a method to send a test email message. You can only send an email that has already been created (e.g., using the createEmailMessage method). You can send it to several addresses separated by commas.

Principle of use

Syntax and URL to call the method
sendTestEmail (string api_key, int id, string email)
https://api.unisender.com/en/api/sendTestEmail?api_key=KEY&id=LETTER_ID&email=EMAIL_RECIPIENT1,EMAIL_RECIPIENT2

 

Arguments
api_key * API access key.
email * Message recipient’s address. You can send message to several addresses separated by commas.
id * Identifier for the previously created email. (E.g., using the createEmailMessage method).
Return value
Example of the return value if request is successful:

{
   'message': 'Test letter id:'10' was sent, to 'test@unisender.com''
}

Example of the returned value in the event of an error:

{
    "error": "ZS140529-01 [E-mail 'test@mail.ru' has not been verified yet]",
    "code": "unspecified"
}
Оцените, на сколько вам показалась полезной статья «sendTestEmail method»
(0)

Did we answer to your question?

0
0