|
Posted by Rik on 08/02/07 05:11
On Thu, 02 Aug 2007 06:56:00 +0200, akuva <shankar.nsm@gmail.com> wrote:
> I have to send more than 100s of email using a php code if i use mail
> function whether it will be sent to spam or inbox. If it is sent to
> spam which is the other way to send mass email from php. i have tried
> to sent email to 4 to 5 email ids it is going for inbox only but i
> have a doubt if i send it to more than 100 email id it may go for spam
The mail() function isn't really suitable for hundreds of mails (well,
unless you decide to put them all at once in a To/CC/BCC header, in which
you're just asking to consider you as a spammer).
For the sending of individual emails the manual has this to say:
[quote]
Note: 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.
[/quote]
So either use them, or build your own using fsockopen. Then again,
hundreds isn't that much relatively speaking. When considering a multiple
of (tens, hundreds, etc.) thousands (who offcourse all would have to be
opped in) there are specialized companies to handle this for you.
--
Rik Wasmus
[Back to original message]
|