News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
A MIME Mailer Class
January 04, 2006 @ 09:01:09

On DevShed today, there's a new tutorial that seeks to show you how to create a MIME mailer class in PHP.

This article outlines the design of a PHP class for sending email with attachments. Everything you need to do this is supplied by the core PHP system, so nothing additional (such as non-bundled extensions) should be needed save for the required set up and connection between PHP and a SMTP mail package such as Sendmail or Postfix.

For details on setting up Sendmail and PHP, read through the appropriate section of the PHP manual. If you are already using the mail() function in PHP, you are ready to go right now.

They start off simple, creating the basic framework of the mailer class - to, from, subject, etc. From there, they build the header creation function to input the right information. Then, it's on to the heart of the matter - the "add attachment" function, and the "determine mime type" function". From there, the rest is simple...

1 comment voice your opinion now!
mime mailer class attachment mime mailer class attachment


blog comments powered by Disqus

Similar Posts

Eran Galperin's Blog: Handling mail and mime in PHP using the Zend Framework

TotalPHP: Using an autoload function to make your life easier

DevShed: A MIME Mailer Class

Felix Geisendorfer's Blog: Cake 1.2’s Set class eats nested arrays for breakfast!

Brian Nelson's Blog: Reverse Proxy in PHP5, Rev2


Community Events

Don't see your event here?
Let us know!


laravel api community series podcast example introduction voicesoftheelephpant extension library php7 interview framework version conference symfony2 opinion performance application release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework