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
Replacing mail() function?
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Replacing mail() function?
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.