PHP Classes
elePHPant
Icontem

Tiny Mailer: Compose and send email messages with mail function

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-03-20 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 242 All time: 7,718 This week: 483Up
Version License PHP version Categories
tiny-mailer 1.0.2Custom (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.

  Performance   Level  
Name: Peter Kahl <contact>
Classes: 34 packages by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 58930 in United Kingdom United Kingdom
Week rank: 21 Up2 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 20x

Winner: 1x

Details

Tiny Mailer

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

Usage Example

use peterkahl\tinyMailer\tinyMailer;

$args['sendto-name'] = 'Joe Blow';
$args['sendto-mail'] = 'joe.blow@destination.whatever';
$args['from-name']   = 'Ian Tester';
$args['from-mail']   = 'ian.tester@mydomain.whatever';
$args['message-txt'] = 'Dear Dude,

I am so happy to use this mailer.

Best regards,
Ian Tester';
$args['subject']     = 'Test 1, 2, 3';

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

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

  Files folder image Files  
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  /  src  
File Role Description
  Plain text file tinyMailer.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:242
This week:0
All time:7,718
This week:483Up