MIME E-mail message sending: PHP mailer to compose and send MIME messages

Recommend this page to a friend!
  Info   Example   Screenshots   View files (32)   Download .zip   Reputation   Support forum (142)   Blog (3)    
Last Updated Ratings Unique User Downloads Download Rankings
2020-03-31 (4 months ago) 85%Total: 47,981 This week: 2All time: 5 This week: 114
Version License PHP version Categories
mimemessage 1.0.3BSD License3Email, Unix, Windows
Description Author

Class that may be used to compose and send e-mail messages.

It features:

- User definable headers and body parts.
- MIME encoding of text and HTML body parts with user defined character encoding using quoted-printable.
- Addition of file parts (attachments) with automatic content type detection.
- Forwarding of messages received from somebody else as intact attachments
- Support for multipart/related messages (eg. HTML messages with embedded images, stylesheets, frames, etc..)
- Support for multipart/alternative messages (eg. text and HTML versions in the same message).
- Encoding of message headers with user defined character encoding using q-encoding.
- Definition of the error delivery address setting the Return-Path header calling sendmail program directly.
- Several sub-classes for sending messages by different methods: PHP mail() function, sendmail, qmail, SMTP (with support for authentication and direct delivery mode), maildrop in Microsoft IIS or Exchange Pickup folder.
- Wrappers that emulate the mail() function using the SMTP, sendmail and qmail delivery sub-classes.
- Support for sending personalized bulk mail by replacing the contents of the message parts that differ for each recipient.
- HTML and plain text message parts can be composed using template engines. An example that works with Smarty template engine is provided.
- Retrieving the composed message data or size without sending the message


password authentication email
I want email to send to users after authentication

Send emails fast
I need to send many emails

Find how to connect to SMTP server
Connect to SMTP mail server through IMAP

What is the best PHP send email with gmail class?
Send email SMTP gmail

Send many emails at once
Send a newsletter to many subscribers

Simple send file through email/contact page
Simple and complete methods to send files embedded

What is the best PHP html mail script class?
Send this mail every 15 days

Send email with attachment
Send an email attachment files

What is the best PHP mailer class?
PHP mailer that supports To, Cc and Reply-To

PHP Mailer class
Class for sending email

Import mailing list design
Import different formatted Excel list, personalize each mail

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 41 packages by
Country: Portugal Portugal
Age: 51
All time rank: 1
Week rank: 3 1 in Portugal Portugal

File Role Description
documentation (5 files)
templates (2 files)
email_message.php Class MIME E-mail composition and sending class
message.eml Data Sample message file for demonstrating message forwarding support
pickup_message.php Class Subclass to send composed messages using a Microsoft IIS or Exchange 2000 mail pickup folder
qmail_mail.php Aux. Mail() emulation function using qmail_message_class
qmail_message.php Class E-mail message sending sub-class of email_message_class using qmail
sendmail_mail.php Aux. Mail() emulation function using sendmail_message_class
sendmail_message.php Class Sendmail wrapper class to set Return-Path header and message queue options
smtp_mail.php Aux. Mail() function emulation using smtp_message_class
smtp_message.php Class Subclass to send composed messages using a SMTP server
test_attachment_message.php Example Example script of how to send e-mail messages with attachment files.
test_email_message.php Example MIME E-mail message class test script
test_forwarding_message.php Example Test script for sending a MIME message that forwards another message
test_html_mail_message.php Example Example script of how to send HTML e-mail messages.
test_multibyte_message.php Example Example script of a page with a form to compose and send a message with multibyte characters text (Japanese, etc..)
test_personalized_bulk_mail.php Example Test script for sending bulk mail with messages with contents personalized for each recipient.
test_pickup_message.php Example Script to test the pickup_message class
test_qmail_mail.php Example Test script for the Mail() function emulation using qmail_message_class
test_quoted_printable.php Test Test suite for verifying the quoted printable encoding support.
test_sendmail_mail.php Example Test script for the Mail() function emulation using sendmail_message_class
test_simple_html_mail_message.php Example Example script to demonstrate how to send a simple HTML with the strongly recommended alternative text part
test_smarty_personalized_mailing.php Example Test script for sending personalized bulk mailings using templates using the Smarty engine to compose HTML and plain text alternative parts of the messages.
test_smtp_mail.php Example Test script for the Mail() function emulation using smtp_message_class
test_smtp_message.php Example Script to test the smtp_message class
test_urgent_mail.php Example Test script for the urgent_mail() function
urgent_mail.php Aux. mail() function replacement for urgent message delivery connecting directly to the recipient SMTP server and fallback to the mail function in case of temporary failure

  Files  /  documentation  
File Role Description
   email_message_class.html Doc. Documentation of the email_message_class
   pickup_message_class.html Doc. Documentation of the pickup_message_class
   qmail_message_class.html Doc. Documentation of the qmail_message_class
   sendmail_message_class.html Doc. Documentation of the sendmail_message_class
   smtp_message_class.html Doc. Documentation of the smtp_message_class

  Files  /  templates  
File Role Description
   mailing.html.tpl Data Example HTML template for composing personalized mailings with the Smarty engine
   mailing.txt.tpl Data Example plain text template for composing personalized mailings with the Smarty engine

mimemessage-2020-03-31.zip 115KB
mimemessage-2020-03-31.tar.gz 96KB
Install with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
SMTP E-mail sending class .zip .tar.gz If it is used the SMTP message sub-class, this class is need to perform the actual SMTP delivery Conditional
 Version Control Reuses Unique User Downloads Download Rankings  
This week:2
All time:5
This week:114
User Ratings User Comments (19)
 All time
3 years ago (muabshir)
The best class i've found that fits my needs to send bulk ema...
6 years ago (john marshall)
good for practice
6 years ago (shyam6511)
always worked for me
7 years ago (Helio)
Yo! It's very usefull package.
7 years ago (Báris András)
Doesn't work
8 years ago (LuisDiego)
A very good package.
9 years ago (Wetter)
It does what I needed.
9 years ago (marco zabel)
9 years ago (rajeshkumar)
One of my favourite packages! It works like a charm and it is...
10 years ago (Ingo Nehls)
It's easy to use.
10 years ago (dewa)
11 years ago (kishore kumar)
it changed my life! :-) very useful!
11 years ago (mannaro)
All I have used so far in this impeccable class is email_mess...
11 years ago (Thales Jacobi)
Needed changing to suit my individual needs, as expected.
12 years ago (Phil)
My favorite PHP class when it comes to sending mail using a S...
12 years ago (Karthikeyan)
Works perfectly
12 years ago (Daniel)
The class makes the magic true.
12 years ago (Said Bakr)
Pra evitar que seus emails não sejam entregues no Hotmail.
12 years ago (didi)

For more information send a message to info at phpclasses dot org.