Re: [PHP] Re: replacing mail()

2002-09-18 Thread lallous

Afaik, PHP on Unix does not use internal functions but instead it uses
Sendmail therefore you can configure it in PHP.INI to not use sendmail,

as for win32, PHP mails via direct SMTP connections...


Liam Mackenzie [EMAIL PROTECTED] wrote in message
002a01c25f00$54a01050$0b00a8c0@enigma">news:002a01c25f00$54a01050$0b00a8c0@enigma...
 I've spent over 6 months trying to get sendmail to work to my liking,
don't
 talk to me about sendmail!
 :-P

 eXtremail does the job real good  ;-)
 www.extremail.com

 Is there any way of EASILY rewriting PHP's mail() function?

 Cheers,
 Liam


 - Original Message -
 From: lallous [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 18, 2002 9:25 PM
 Subject: [PHP] Re: replacing mail()


 There is something you can set in php.ini afaik.
 search for 'sendmail' in that file.

 Elias,
 Liam [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]...
  Yeah, mail() again...
 
  I want to disable the default mail command and replace it with my own.
  I've written a function that talks directly to my SMTP server, however,
 I'd
  rather not go thru every single script on my server and change all the
  mail() functions.
 
  Any ideas?
 
  Cheers,
  Liam
 
 



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









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




Re: [PHP] Re: replacing mail()

2002-09-18 Thread Rick Widmer


Liam Mackenzie [EMAIL PROTECTED] wrote in message
002a01c25f00$54a01050$0b00a8c0@enigma">news:002a01c25f00$54a01050$0b00a8c0@enigma...
  I've spent over 6 months trying to get sendmail to work to my liking,
don't
  talk to me about sendmail!
  :-P

I know the feeling.  I use qmail now.


 
  eXtremail does the job real good  ;-)
  www.extremail.com
 
  Is there any way of EASILY rewriting PHP's mail() function?

No.  Qmail provides a sendmail wrapper that replaces the sendmail program 
and injects
mail onto the qmail queue.  I just replaced the /sbin/sendmail program with 
a link to
  /var/qmail/bin/sendmail and all programs on the server, including PHP 
send mail through
it.

Rick


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