Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Manuel Lemos
Name: Manuel Lemos <e-mail contact>
Packages: 37 Browse all classes by Manuel Lemos Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 45
All time rank: 1
Week rank: 2 Down1 in Portugal Portugal Equal


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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

  Classes of Manuel Lemos  >  MIME E-mail message sending  >  Download Download .zip .tar.gz  >  Support forum Support forum (130)  >  Blog Blog (3)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: MIME E-mail message sending
Base name: mimemessage
Description: PHP mailer to compose and send MIME messages
Version: 1.0.0
PHP version: -
License: BSD License
All time users: 45495 users
All time rank: 5
Week users: 19 users
Week rank: 54 Down
 
  Groups   Screenshots Screenshots   Video Tutorials   Freshmeat project   Rate classes User ratings  
  Dependencies   Dependents   Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image Email Email sending and receiving View top rated classes
Group folder image Unix Use of capabilities specific of POSIX, Unix like operating systems View top rated classes
Group folder image Windows Use of capabilities specific of the Windows operating systems View top rated classes

  Files folder image Screenshots  
HTML message with embedded images and an attachment
File Role Description
Accessible without login Image file mimemessage.gif Screen HTML message with embedded images and an attachment


  Tutorial videos and presentations  
Enviando e-mail que chega ao destino usando PHP
Title Description Duration
Presentation Enviando E Mail Que Chega Ao Destino usando PHP Palestra dada por Manuel Lemos no CONAPHP 2008 - Congresso Nacional de PHP que ocorreu em São Pau... 21
Video Enviando e-mail que chega ao destino usando PHP Palestra data por Manuel Lemos no CONAPHP - COngresso Nacional de PHP 2008 que ocorreu em S?Paulo... 01:08:00
Presentation Sending E-mail that reaches the destination Slides of a presentation about the PHP MIME message composing and sending class. It teaches how t... 21

  Freshmeat project  
MIME E-mail message sending
Project record: mimemessageclass
Popularity score: 225.99
Vitality score: 20.82

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (92.4%) Good (88.6%) Good (81.3%) Good (84.5%) Sufficient (77.1%) Not sure (56.2%) Good (85.0%) 1
Month: There are not enough user ratings to display for this class.

  Packages needed by this class  
Class Dependency Why it is needed
SMTP E-mail sending class Conditional If it is used the SMTP message sub-class, this class is need to perform the actual SMTP delivery

  Packages that need this class  
Class Dependency Why it is needed
Log watcher Optional When the mail delivery method is meant to replaced by the urgent mail function
Smarty and MIME message integration Required To send the letter

  Trackback links  
Link Description
PHP: PHP Developers Edit Where I can find a good PHP library to send emails using SSL? You can always use the PHP MIME message class and the SMTP driver which supports either SSL connections (needed to deliver via Gmail) or start TLS encryption (needed to deliver via Hotmail) if the servers support it...
php – sending email from command line Here is a simple php script that sends an email from the command line using php...
Presentation by Manuel Lemos (PHPClasses.org) on Email Deliverability Had a bit of a break from posting while I have been travelling with work. Back now and so should be posting a bit more regularly...

  Applications that use this class  
Link Description
Citizen Photographer This class is used to reformat and resend camera phone shot messages received by the site.
Dog Obedience Used to compose and send e-mail from this site about training dogs
Tellmatic - the newsletter machine This projects uses the MIME message class because it handles SMTP with different authentication methods, attachments, inline images and html or text parts in a very easy way.
UMPL for Xmailserver E-mail system management system that uses this class for composing and sending messages because it is complete and ready to use and it helped to speedup the development of this application.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Mailing list Support mailing list where users of this class can get help. For faster support, instead use the Support forum listed above.
Smarty Smarty template engine that can be used to compose personalized bulk mailings as demonstrated in a example of this class

  Files folder image Files  
File Role Description
Files folder imagedocumentation (5 files)
Files folder imagetemplates (2 files)
Plain text file email_message.php Class MIME E-mail composition and sending class
Accessible without login Plain text file message.eml Data Sample message file for demonstrating message forwarding support
Plain text file pickup_message.php Class Subclass to send composed messages using a Microsoft IIS or Exchange 2000 mail pickup folder
Accessible without login Plain text file qmail_mail.php Aux. Mail() emulation function using qmail_message_class
Plain text file qmail_message.php Class E-mail message sending sub-class of email_message_class using qmail
Accessible without login Plain text file sendmail_mail.php Aux. Mail() emulation function using sendmail_message_class
Plain text file sendmail_message.php Class Sendmail wrapper class to set Return-Path header and message queue options
Accessible without login Plain text file smtp_mail.php Aux. Mail() function emulation using smtp_message_class
Plain text file smtp_message.php Class Subclass to send composed messages using a SMTP server
Accessible without login Plain text file test_attachment_message.php Example Example script of how to send e-mail messages with attachment files.
Accessible without login Plain text file test_email_message.php Example MIME E-mail message class test script
Accessible without login Plain text file test_forwarding_message.php Example Test script for sending a MIME message that forwards another message
Accessible without login Plain text file test_html_mail_message.php Example Example script of how to send HTML e-mail messages.
Accessible without login Plain text file 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..)
Accessible without login Plain text file test_personalized_bulk_mail.php Example Test script for sending bulk mail with messages with contents personalized for each recipient.
Accessible without login Plain text file test_pickup_message.php Example Script to test the pickup_message class
Accessible without login Plain text file test_qmail_mail.php Example Test script for the Mail() function emulation using qmail_message_class
Accessible without login Plain text file test_quoted_printable.php Test Test suite for verifying the quoted printable encoding support.
Accessible without login Plain text file test_sendmail_mail.php Example Test script for the Mail() function emulation using sendmail_message_class
Accessible without login Plain text file test_simple_html_mail_message.php Example Example script to demonstrate how to send a simple HTML with the strongly recommended alternative text part
Accessible without login Plain text file 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.
Accessible without login Plain text file test_smtp_mail.php Example Test script for the Mail() function emulation using smtp_message_class
Accessible without login Plain text file test_smtp_message.php Example Script to test the smtp_message class
Accessible without login Plain text file test_urgent_mail.php Example Test script for the urgent_mail() function
Accessible without login Plain text file 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  /  Files folder image documentation  
File Role Description
  Accessible without login HTML file email_message_class.html Doc. Documentation of the email_message_class
  Accessible without login HTML file pickup_message_class.html Doc. Documentation of the pickup_message_class
  Accessible without login HTML file qmail_message_class.html Doc. Documentation of the qmail_message_class
  Accessible without login HTML file sendmail_message_class.html Doc. Documentation of the sendmail_message_class
  Accessible without login HTML file smtp_message_class.html Doc. Documentation of the smtp_message_class

  Files  /  Files folder image templates  
File Role Description
  Accessible without login Plain text file mailing.html.tpl Data Example HTML template for composing personalized mailings with the Smarty engine
  Accessible without login Plain text file mailing.txt.tpl Data Example plain text template for composing personalized mailings with the Smarty engine

Install with Composer Install with Composer - Download Download all files: mimemessage.tar.gz mimemessage.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.