Re: sendmail

From: Date: Tue, 21 Aug 2001 15:38:55 +0000
Subject: Re: sendmail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63721@lists.php.net to get a copy of this message
Thank you for advise, I think I'll use .htaccess and that would be fine. But why do I need to include ""? I'm using in on my local Apache win32 without "" even though I understand what is "string" Youri On 19 Aug 2001, at 16:01, Richard Lynch wrote: > > I'm on virtual hosting that lets me configure anything with .htaccess > > file. I was recomended by provider to specify location of sendmail in > > case I want to use php mail() function I know that I may do it in > > htaccess file by adding php_value sendmail_path > > /usr/sbin/sendmail The qwestion is can I do anything else but > > correcting the path in .htaccess, this is the last thing I want to do. > > First of all, you'll need: > > php_value sendmail_path "/usr/sbin/sendmail -t" > > Yes, you need the quotes. > And possibly some other options inside quotes depending on your ISP's > configuration of sendmail. > > I don't understand your ISP's rationale for requiring you to do this in > .htaccess instead of just doing it himself... Either he's letting you use > mail() or he's not. > > I also don't understand why you are loathe to do this... Unless you've > heard ".htaccess is slow" (which it is). Alas, since your ISP has already > turned on .htaccess support, you're *NOT* causing any additional significant > slow-down to *utilize* the feature. The slowness is in Apache looking for > the damn file, not in your putting (reasonable) stuff in it. > > Oh yeah, to answer your original question :-) > > You probably *COULD* set up an SMTP server on some other machine and just > fsockopen() to that SMTP server and spew your emails to that. This will be > way more faster anyway. Or, perhaps your ISP has an SMTP server that PHP > can fsockopen() and spew to. Depends on how he configured it. There's all > sorts of sample code for this SMTP spewing, so you needn't write it from > scratch -- though it ain't rocket science. I did it, so it *CANNOT* be that > difficult. :-) > > -- > WARNING richard@zend.com address is an endangered species -- Use > ceo@l-i-e.com > Wanna help me out? Like Music? Buy a CD: > http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > >

« previous php.general (#63721) next »