Re: Re: Sending filing attachments using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Alister Bulman wrote:

On 12/05/06, JupiterHost.Net <mlists@xxxxxxxxxxxxxxx> wrote:

You're piping a hand crafted mime message to sendmial via mail()?

You are a glutton for pain :) (and oh yeah theres about a zillion MIME
issues you've overlooked that will come back and bite you later, gauranteed)

use a tool thats made for it:
http://search.cpan.org/perldoc?Mail::Sender::Easy


I agree - don't get bitten on the ass, but OTOH, there's already a PHP
Mime encoder - no need to point him to a Perl library....

http://pear.php.net/package/Mail_Mime

Yes there's a huge need, PHP is way to problematic and many folks don't even realize thats its one of a hundred possible tools. Most of which are better suited for most things.

Plus, what if you don't have Pear compiled into PHP? Now theres more hoops, oops need zend optimizer, more hoops, oops that version doesn;t work on that verison, more hoops. Oh yeah and you have to be root to do all this, nice.

And that module is not a MIME tool in itself, it uses perl's MIME tools and SMTP tools but it abstracts all of that for you so all you have to do is make a hash that represents your mail. No knowlege of SMTP or MIME necessary.

And you can install it as a regular user and use it yourself if need be, what could be easier :)

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux