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

sendTestEmail method

Вы здесь:

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, string format, int id, string email)
https://api.unisender.com/en/api/sendTestEmail?api_key=KEY&id=LETTER_ID&email=EMAIL_RECIPIENT1,EMAIL_RECIPIENT2
&format=FORMAT
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).
format Display format. It obtains values of html | json, json is set by default (the html format is intended only for visual viewing of the result, the parser will not work in this format).
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)