PHP's mail()
is said to garble headers and runs slowly. I can't say this from personal experience because I've never used it, because, like you, I've always been advised against it. If you look at the comments on the entry for mail()
in the PHP manual, you can see some of the problems people have with it (esp. with headers).
It's definitely not suited for sending any substantial amount of email, because, according to the manual itself,
It is worth noting that the mail()
function is not suitable for larger
volumes of email in a loop. This
function opens and closes an SMTP
socket for each email, which is not
very efficient.
For the sending of large amounts of
email, see the » PEAR::Mail, and »
PEAR::Mail_Queue packages.
AFAIK, it's never preferable (performance-wise) to open and close a socket for each message you send regardless of the amount of mail you're sending.
Basically, it's a function that works, but not very well, and is eclipsed by a number of better libraries.
No comments:
Post a Comment