469,945 Members | 2,312 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

sending mass email fom php using mail function

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

Aug 2 '07 #1
1 2744
Rik
On Thu, 02 Aug 2007 06:56:00 +0200, akuva <sh*********@gmail.comwrote:
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:
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.
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
Aug 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Jeffrey Silverman | last post: by
13 posts views Thread by joe215 | last post: by
1 post views Thread by mark | last post: by
8 posts views Thread by windandwaves | last post: by
1 post views Thread by johnny | last post: by
1 post views Thread by akuva | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.