This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$email = array('andreis@sendgrid.com','andrei2@sendgrid.com'); | |
$name = array('andrei1','andrei2'); | |
for($i=0;$i<count($email);$i++) | |
{ | |
$data[] = json_encode(array('email' => $email[$i], 'name' => $name[$i])); | |
} | |
$url = 'http://sendgrid.com/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$headers = array(); | |
$headers[] = "MIME-Version: 1.0"; | |
$headers[] = "Content-type: text/plain; charset=iso-8859-1"; | |
$headers[] = "From: Sender Name <sender@domain.com>"; | |
$headers[] = "Bcc: JJ Chong <bcc@domain2.com>"; | |
$headers[] = "Reply-To: Recipient Name <receiver@domain3.com>"; | |
$headers[] = "Subject: {$subject}"; | |
$headers[] = "X-Mailer: PHP/".phpversion(); | |
$headers[] = "X-SMTPAPI: {"category":"testing123"}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://sendgrid.com/'; | |
$user = 'SG_username'; | |
$pass = 'SG_password'; | |
$days = 'x'; | |
$params = array( | |
'days' => $days, | |
'api_user' => $user, | |
'api_key' => $pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = array( | |
'api_user' => $user, | |
'api_key' => $pass, | |
'to' => $adresa, | |
'subject' => $subiect, | |
'text' => $mesaj, | |
'html' => $html, | |
'x-smtpapi' => '{"unique_args": {"campaign_id":"121"}}', | |
'from' => $from | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// this is where file.txt is created and content is added. | |
$my_file = 'file.txt'; | |
$handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file); | |
$data = 'This is the actual content of the text file.'; | |
fwrite($handle, $data); | |
$url = 'http://sendgrid.com/'; | |
$user = '******'; | |
$pass = '******'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filters": | |
{ | |
"subscriptiontrack": | |
{ | |
"settings": | |
{ | |
"enable":1, | |
"text/html":"If you would like to unsubscribe and stop receiving these emails <% click here %>", | |
"text/plain":"If you would like to unsubscribe and stop receiving these emails click here: <% %>." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://sendgrid.com/'; | |
$user = '*****'; | |
$pass = '*****'; | |
$identity = 'address1'; | |
$params = array( | |
'api_user' => $user, | |
'api_key' => $pass, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://sendgrid.com/'; | |
$user = "sebfree"; | |
$pass = "******"; | |
$nl_name = "NLAPI_test3"; | |
$send_time = "2013-07-25T09:00:00+02:00"; | |
$params = array( | |
'api_user' => $user, | |
'api_key' => $pass, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://sendgrid.com/'; | |
$user = '******'; | |
$pass = '******'; | |
$fileName = 'music.mp3'; | |
$filePath = dirname(__FILE__); | |
$params = array( | |
'api_user' => $user, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: indexhelp@db.com | |
Message-Id: <201307292145.r6TLjuwO016779@nyiqcalp1.us.db.com> | |
X-Authentication-Warning: nyiqcalp1.us.db.com: dbiqcalp set sender to | |
indexhelp@db.com using -f | |
To: DBXIndexLevels@list.db.com, rohit.padebettu@db.com, | |
dbx-import-ce2dd12b@sendgrid.dbxus.com | |
Subject: DBCS Index level Report, Date : 20130726 | |
X-BeenThere: dbxindexlevels@list.db.com | |
Precedence: list | |
List-Id: dbxindexlevels.list.db.com |
OlderNewer