Email

Send Single Email

1
https://flashyapp.com/api/email/send
Copied!
JSON
1
{
2
"key": "__API_KEY__",
3
"email": {
4
"subject": "Your amazing subject!",
5
"template": "sl5cf4po7z8c", // Find your template id on Flashy dashboard
6
"html": "", // If you don't want to use template use HTML
7
"from": {
8
"name": "Company Name",
9
"email": "[email protected]"
10
},
11
"to": {
12
"name": "Snow",
13
"email": "[email protected]"
14
},
15
"vars": { // Any vars you want to add.
16
"unique_hash": "somethinghere"
17
}
18
}
19
}
Copied!

Send Bulk Emails

1
https://flashyapp.com/api/email/send
Copied!
JSON
PHP
1
{
2
"key": "__API_KEY__",
3
"email": {
4
"subject": "Your amazing subject!",
5
"template": "sl5cf4po7z8c", // Find your template id on Flashy dashboard
6
"html": "", // If you don't want to use template use HTML
7
"from": {
8
"name": "Company Name",
9
"email": "[email protected]"
10
},
11
"to": [
12
{
13
"name": "Snow",
14
"email": "[email protected]"
15
},
16
{
17
"name": "Second",
18
"email": "[email protected]"
19
}
20
],
21
"vars": { // Any vars you want to add.
22
"unique_hash": "somethinghere"
23
}
24
}
25
}
Copied!
1
<?php
2
$send = $flashy->email->send(array(
3
"subject" => "Your amazing subject!",
4
"template" => "sl5cf4po7z8c",
5
"from" => array(
6
"name" => "Something",
7
"email" => "[email protected]"
8
),
9
"to" => array(
10
"name" => "Contact",
11
"email" => "[email protected]"
12
),
13
"vars" => array(
14
"data_key" => "data_value"
15
)
16
));
17
?>
Copied!
Last modified 1yr ago