This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 = ['[email protected]','[email protected]'] | |
names = ['Andrei1','Andrei2'] | |
array = [] |
This file contains hidden or 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' => '[email protected]', | |
'date' => '1', |
This file contains hidden or 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 protected]','[email protected]','[email protected]'); | |
//initialize the email array | |
$name=array('Name1','Name2','Name3'); |
This file contains hidden or 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: [email protected] | |
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: <[email protected]> | |
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 hidden or 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('[email protected]')-> | |
setFrom('[email protected]')-> | |
setSubject('Kvitto din kförs betalning nördlichen blabla Hemisphäre ciment')-> | |
setText('Testing %name% subject.')-> |
This file contains hidden or 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: <[email protected]> | |
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 [email protected] designates 74.63.236.162 as permitted sender) client-ip=74.63.236.162; | |
Authentication-Results: mx.google.com; |
This file contains hidden or 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: [email protected] | |
Message-Id: <[email protected]> | |
X-Authentication-Warning: nyiqcalp1.us.db.com: dbiqcalp set sender to | |
[email protected] using -f | |
To: [email protected], [email protected], | |
[email protected] | |
Subject: DBCS Index level Report, Date : 20130726 | |
X-BeenThere: [email protected] | |
Precedence: list | |
List-Id: dbxindexlevels.list.db.com |
NewerOlder