t-cyrill/net-simple-mailer

Lightweight mail library.

1.0.1 2014-04-24 07:32 UTC

This package is not auto-updated.

Last update: 2024-04-09 04:00:06 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();