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
require '~/Dev/ruby/SmtpApiHeader.rb' | |
require 'mail' | |
Mail.defaults do | |
delivery_method :smtp, { :address => "smtp.sendgrid.net", | |
:port => 587, | |
:domain => "sendgrid.com", | |
:user_name => "sebfree", | |
:password => "*******", | |
:authentication => 'plain', |
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
Content-Type: text/calendar; charset=UTF-8; method=REQUEST | |
Content-Transfer-Encoding: 7bit | |
BEGIN:VCALENDAR | |
PRODID:-//Google Inc//Google Calendar 70.9054//EN | |
VERSION:2.0 | |
CALSCALE:GREGORIAN | |
METHOD:REQUEST | |
BEGIN:VEVENT | |
DTSTART:20131125T120000Z |
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 | |
$handle = @fopen('./tmp/dump.log', "r"); | |
if ($handle) | |
{ | |
// read till the end of the file | |
while (!feof($handle)) | |
{ | |
// read a line from the file | |
$line = fgets($handle, 4096); | |
// decode the json -> assoc. array |
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
require 'httparty' | |
require 'JSON' | |
url = 'https://sendgrid.com/api/newsletter/lists/email/add.json' | |
#the arrays containg email addreses and custom tags | |
emails = ['andrei@sendgridson2.com','andrejstg@gmai2l.com'] | |
names = ['Andrei1','Andrei2'] | |
array = [] |
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 = 'schoologysendgridapi'; | |
$pass = '*********'; | |
$params = array( | |
'api_user' => $user, | |
'api_key' => $pass, | |
'email' => 'ahandler@stewie.schoologize.com', | |
'date' => '1', |
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 | |
$username='SG_username'; | |
$password='SG_password'; | |
$url = 'https://sendgrid.com/api/newsletter/lists/email/add.json?api_user='.$username.'&api_key='.$password; | |
// API call including username and password | |
$email=array('email@domain.com','mail@example.com','mailz@email.com'); | |
//initialize the email array | |
$name=array('Name1','Name2','Name3'); |
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
Delivered-To: sendgrid.tests@gmail.com | |
Received: by 10.216.248.138 with SMTP id v10csp35227wer; | |
Fri, 30 Aug 2013 05:51:53 -0700 (PDT) | |
X-Received: by 10.60.50.135 with SMTP id c7mr6778616oeo.41.1377867113157; | |
Fri, 30 Aug 2013 05:51:53 -0700 (PDT) | |
Return-Path: <bounces+700795-f0ca-sendgrid.tests=gmail.com@oe.e-anjal.in> | |
Received: from o1.oe.e-anjal.in (o1.oe.e-anjal.in. [192.254.116.81]) | |
by mx.google.com with SMTP id t6si4994524oei.83.1969.12.31.16.00.00; | |
Fri, 30 Aug 2013 05:51:53 -0700 (PDT) |
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 | |
include 'sendgrid-php-master/SendGrid_loader.php'; | |
$sendgrid = new SendGrid('*******', '*******'); | |
$mail = new SendGrid\Mail(); | |
$mail-> | |
addTo('sebi.mihalache@gmail.com')-> | |
setFrom('sebastian.mihalache@sendgrid.com')-> | |
setSubject('Kvitto din kförs betalning nördlichen blabla Hemisphäre ciment')-> | |
setText('Testing %name% subject.')-> |
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
Received: by 10.216.248.138 with SMTP id v10csp285697wer; | |
Tue, 27 Aug 2013 01:38:56 -0700 (PDT) | |
X-Received: by 10.182.88.202 with SMTP id bi10mr953674obb.91.1377592736225; | |
Tue, 27 Aug 2013 01:38:56 -0700 (PDT) | |
Return-Path: <bounces+236416-e7b6-sendgrid.tests=gmail.com@sendgrid.info> | |
Received: from o5.b99.sendgrid.net (o5.b99.sendgrid.net. [74.63.236.162]) | |
by mx.google.com with SMTP id t6si5898479oei.18.1969.12.31.16.00.00; | |
Tue, 27 Aug 2013 01:38:56 -0700 (PDT) | |
Received-SPF: pass (google.com: domain of bounces+236416-e7b6-sendgrid.tests=gmail.com@sendgrid.info designates 74.63.236.162 as permitted sender) client-ip=74.63.236.162; | |
Authentication-Results: mx.google.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
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 |
NewerOlder