Page 1 of 1

Replacing mail() function?

Posted: Wed Mar 05, 2008 7:06 am
by nibl
Is there a way to wrap or redirect PHP's native mail() function so it would use Swift Mailer instead?

Most PHP apps use mail(). Can you redirect them, or have Swift Mailer pose as mail()?

Our goal is to avoid using sendmail altogether. Would Swift Mailer achieve this?
I'm quite a PHP newbie so examples would be great. Thanks.

Marcus

Re: Replacing mail() function?

Posted: Wed Mar 05, 2008 3:05 pm
by Chris Corbyn
You can avoid sendmail by using Swift, but Swift cannot pose as the mail() function no. At least, not without runkit or something patched into PHP.