PHP Classes

Tiny Mailer: Compose and send email messages with mail function

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 348 All time: 7,018 This week: 560Up
Version License PHP version Categories
tiny-mailer 1.0.4Custom (specified...5Email, PHP 5
Description 

Author

This class can compose and send email messages with mail() function.

It takes an array of arguments that define parameters like the message subject, body, sender and recipient addresses.

The class assembles the MIME message body and sends it using the PHP mail() function.

Picture of Peter Kahl
  Performance   Level  
Name: Peter Kahl <contact>
Classes: 37 packages by
Country: United Kingdom
Age: ???
All time rank: 41521 in United Kingdom
Week rank: 18 Up2 in United Kingdom Up
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Documentation

Tiny Mailer ?? ????????? ??????

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

Light-weight PHP mailer that uses the mail() function. Plain text only. Nothing fancy. UTF-8 capable.

Usage Example

use peterkahl\tinyMailer\tinyMailer;

$body = '???? Jane,
I am so happy to use this simple mailer.
John Roe';

$arr = array(
  'sendto-name' => 'Jane Doe',
  'sendto-mail' => 'jane.doe@destination.whatever',
  'from-name'   => 'John Roe',
  'from-mail'   => 'john.roe@origin.whatever',
  'message-txt' => $body,
  'subject'     => 'Some subject text ?????',
);

$id = tinyMailer::send($arr);

if ($id === false) {
  echo 'Failed';
}
else {
  echo 'Successfuly sent message with ID '. $id;
}


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file tinyMailer.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:348
This week:0
All time:7,018
This week:560Up