t-cyrill/net-simple-mailer

Lightweight mail library.

Installs: 1

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

1.0.1 2014-04-24 07:32 UTC

README

SimpleMailer is a lightweight PHP 5.3 library. (Support PHP 5.4 and PHP 5.5).

This is PHP mail function wrapper.

Installation

Composer

Download the composer.phar.

$ curl -s http://getcomposer.org/installer | php

Run Composer: php composer.phar require "t-cyrill/net-simple-mailer"

Direct Install

Simplemailer is one PHP file library.

We can use Simplemailer, using require 'SimpleMailer.php'

Usage

<?php
require 'vendor/autoload.php';

$mailer = new Net\SimpleMailer("\n");

$mailer->from($from)
     ->to($address)
     ->subject($subject)
     ->message($msg)
     ->attachment($file)
     ->send();