Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added further documentation to the README

  • Loading branch information...
commit 2705f595412d40e375aff8307ef6093744cdd17a 1 parent ea95215
CJ Buchmann authored
Showing with 0 additions and 61 deletions.
  1. +0 −51 README.md
  2. +0 −10 Test/Mock/WebMock.php
View
51 README.md
@@ -1,51 +0,0 @@
-# sendgrid-php #
-This library allows you to quickly and easily send emails through SendGrid using PHP.
-
-## License ##
-Licensed under the MIT License.
-
-## Install ##
-```
-git clone git@github.com:sendgrid/sendgrid-php.git
-```
-
-## SendGrid APIs ##
-SendGrid provides two methods of sending email: the Web API, and SMTP API. SendGrid recommends using the SMTP API for sending emails.
-For an explanation of the benefits of each, refer to http://docs.sendgrid.com/documentation/get-started/integrate/examples/smtp-vs-rest/.
-
-This library implements a common interface to make it very easy to use either API.
-
-## Usage ##
-To begin using this library, you must first include it
-
-```
-include 'path/to/sendgrid-php/SendGrid_loader.php';
-```
-
-Initialize the SendGrid object with your SendGrid credentials
-
-```
-$sendgrid = new SendGrid('username', 'password');
-```
-
-Create a new SendGrid Mail object and add your message details
-
-```
-$mail = new SendGrid\Mail();
-$mail->addTo('foo@bar.com')->
- setFrom('me@bar.com')->
- setSubject('Subject goes here')->
- setText('Hello World!')->
- setHtml('<strong>Hello World!</strong>');
-```
-
-Send it using the API of your choice (SMTP or Web)
-
-```
-$sendgrid->smtp->send($mail);
-```
-Or
-
-```
-$sendgrid->web->send($mail);
-```
View
10 Test/Mock/WebMock.php
@@ -16,14 +16,4 @@ public function testArrayToUrlPart($array, $token)
{
return $this->_arrayToUrlPart($array, $token);
}
-
- public function mockSend(SendGrid\Mail $mail)
- {
- $parts = array();
-
- $parts['domain'] = $this->domain;
- $parts['endpoint'] = $this->endpoint;
- $parts['request'] = $this->_prepMessageData($mail);
- return $parts;
- }
}
Please sign in to comment.
Something went wrong with that request. Please try again.