1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| <?php
include 'SmtpApiHeader.php';
$hdr = new SmtpApiHeader();
$receiver = array(
'kyle@somewhere.com',
'bob@someplace.net',
'someguy@googlemailz.coms'
);
$times = array(
'1pm',
'2pm',
'3pm'
);
$names = array(
'kyle',
'bob',
'someguy'
);
$hdr->addFilterSetting('subscriptiontrack', 'enable', 1);
$hdr->addFilterSetting('twitter', 'enable', 1); #please check the apps available for your current package at www.sendgrid.com/pricing.html ?
$hdr->addTo($receiver);
$hdr->addSubVal('-time-', $times);
$hdr->addSubVal('-name-', $names);
$hdr->setUniqueArgs(array(
'test' => 1,
'foo' => 2
));
echo $hdr->as_string();
echo "\n";
?>
|