Giter VIP home page Giter VIP logo

codeigniter-sendgrid-mail's Introduction

CodeIgniter-SendGrid-Mail

CodeIgniter-SendGrid-Mail is a CodeIgniter wrapper for the SendGrid Mail API.

Requirements

  1. PHP 5.1+
  2. CodeIgniter 2.0.0+
  3. cURL
  4. CodeIgniter REST Client Library: http://getsparks.org/packages/restclient/show

Included Methods

Initialization

  1. initialize() - Set up the library with API credentials and settings

Mail

  1. send() - Send an email

Errors

  1. error_message() - Get error message

Usage

// Load the SendGrid spark
$this->load->spark('sendgrid-mail/0.1.2');

// Initialize (not necessary if set in config)
$this->sendgrid_mail->initialize(array('api_user'   => 'my_username',
                                	   'api_key'    => 'secret_key',
                                	   'api_format' => 'json'));

// Send email
$result = $this->sendgrid_mail->send('[email protected]', 'Welcome to Oz!', 'You may see the wizard now.', NULL, '[email protected]');

codeigniter-sendgrid-mail's People

Contributors

gstjohn avatar

Watchers

James Cloos avatar Gigih Iski Prasetyawan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.