Re: Sending filing attachments using PHP

From: Date: Fri, 12 May 2006 15:09:46 +0000
Subject: Re: Sending filing attachments using PHP
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-41869@lists.php.net to get a copy of this message
Chris wrote:
JupiterHost.Net wrote:
Ing. Edwin Cruz wrote:
Have a look on this: http://framework.zend.com/manual/en/zend.mail.attachments.html It seems to be easy with zend framework
How about a way to do it without having to install a huge system wide binary and configruation that might potentially break apache and all PHP sites? http://search.cpan.org/perldoc?Mail::Sender::Easy
The OP is asking for a PHP solution and you point to cpan.. Hmm.
Yep, because PHP is not usually (some say *never*) the best solution *and* this *is* a PHP + DB list so the OP actually has nothing to do with thei slist anyway.
phpmailer (phpmailer.sourceforge.net) handles everything for you.. even if you want to roll your own, that code will give you a good starting point.
Right after rebuilding php and apache and breaking PHP funtionality for everyone, just so you can send a semi complex MIME message? That is the epitome of PHP's lameness and why I can't sit quietly by and not recommend an easy to install and use and maintain solution. And besides its in a non strutcutered way to maek it even more impossible to maintain. Look at the EXAMPLE section of that url, see how incredibly easy and intuitive it is to sent complex emails? And all the server admin has to do is: perl -MCPAN -e 'install Mail::Sender::Easy;' - no fiddling with apache - no fiddling with the interpretet binary - no possibility of breaking anyone's scripts Or else you could do liek the one guy and make your own MIME message but that is even dumber than insisting that PHP has to be used.

« previous php.db (#41869) next »