473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Limits of PHP, SMTP Mailing

I'm curious about the limits of my current method of sending out e-
mail w/ php and possibly alternatives.

Right now, I have a mysql DB of registered users. I have a PHP file
accessed daily that runs through the DB and sends e-mails (SMTP
mailer) w/ personalized messages (also from the DB) to the users.
Right now I've only got a few e-mails it needs to send per day so it
only takes a second or two for the file to load/run, but this may
change to a few hundred pretty soon (new system, diff. content). The
content is almost all text, ~1 page long for each person. Does anyone
have any idea how many e-mails I could send out w/ this method
reliably? If the list becomes 100, instead of just a few, think it
will still work? 1000? more?

I find a lot of mass mailer services online, but I can't seem to find
ones that can run through a php code to determine content by user
(personalized). Are there alternatives to my current system that
anyone knows of?

Any thoughts will be appreciated. Thanks!!
Jun 2 '08 #1
5 1793
NC
On May 20, 1:45 pm, Josh <jjreic...@gmail.comwrote:
>
Right now, I have a mysql DB of registered users. I have a PHP file
accessed daily that runs through the DB and sends e-mails (SMTP
mailer) w/ personalized messages (also from the DB) to the users.
Right now I've only got a few e-mails it needs to send per day so it
only takes a second or two for the file to load/run, but this may
change to a few hundred pretty soon (new system, diff. content). The
content is almost all text, ~1 page long for each person. Does anyone
have any idea how many e-mails I could send out w/ this method
reliably?
It depends on what hardware your SMTP server is running on and on what
else is running on that hardware. Also, some ISPs impose daily limits
on the number of outgoing messages to avoid overloading their SMTP
servers. Yahoo!, for example, has a daily limit of 250 outgoing
messages.
Are there alternatives to my current system that anyone knows of?
A third-party commercial-grade SMTP server to which your script could
connect using phpMailer or a similar library.

Cheers,
NC
Jun 2 '08 #2
On May 20, 9:45 pm, Josh <jjreic...@gmail.comwrote:
I'm curious about the limits of my current method of sending out e-
mail w/ php and possibly alternatives.

Right now, I have a mysql DB of registered users. I have a PHP file
accessed daily that runs through the DB and sends e-mails (SMTP
mailer) w/ personalized messages (also from the DB) to the users.
Right now I've only got a few e-mails it needs to send per day so it
only takes a second or two for the file to load/run, but this may
change to a few hundred pretty soon (new system, diff. content). The
content is almost all text, ~1 page long for each person. Does anyone
have any idea how many e-mails I could send out w/ this method
reliably? If the list becomes 100, instead of just a few, think it
will still work? 1000? more?

I find a lot of mass mailer services online, but I can't seem to find
ones that can run through a php code to determine content by user
(personalized). Are there alternatives to my current system that
anyone knows of?

Any thoughts will be appreciated. Thanks!!
It depends how you write your code, how quickly the SMTP server can
enqueue and dequeue requests, and how you invoke the script.

The PHP part is pretty much irrelevant - but you do need to think
about how you manage memory in your own code.

C.
Jun 2 '08 #3
Thanks for the feedback. Sorry, I'm not so knowledgeable on this
subject; I have a relatively small, simple script that does work, but
I'm just not sure of it's long-term capability.

I guess what I'm trying to ask is this: what is the best way to send
personalized e-mails to a large list of users and is there a way for
the text in that e-mail to be gathered by running through a php script?
Jun 2 '08 #4
Josh wrote:
Thanks for the feedback. Sorry, I'm not so knowledgeable on this
subject; I have a relatively small, simple script that does work, but
I'm just not sure of it's long-term capability.

I guess what I'm trying to ask is this: what is the best way to send
personalized e-mails to a large list of users and is there a way for
the text in that e-mail to be gathered by running through a php script?

Probably the best way is to use one of the bulk mailing scripts - there
are a bunch of them. Most won't get you the personalization you want,
but some might have some limited use (i.e. "Dear Josh"...).

Alternatively, I think I'd use a database and a batch job. Put the list
of users in the database, along with the message. If you only want
minor personalization (i.e. name), you could put one message in there
with placeholders (i.e. <%NAME%>, <$CITY%>, etc.). Otherwise, you'll
need to put individual messages in there.

One you've loaded the database, a cron job kicks of the batch job to
handle the messages. When handling, substitute any placeholders with
the proper value and send the message. Then mark that entry in the
database as sent (in case you want to go back later and look at them).

Depending on how much time it takes, you could handle say 10 messages,
then kick off the same job again and terminate. When you run out of
messages, just terminate the batch job.

A bunch more programming, but it will handle any sized list.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 2 '08 #5
Hello,

on 05/20/2008 05:45 PM Josh said the following:
I'm curious about the limits of my current method of sending out e-
mail w/ php and possibly alternatives.

Right now, I have a mysql DB of registered users. I have a PHP file
accessed daily that runs through the DB and sends e-mails (SMTP
mailer) w/ personalized messages (also from the DB) to the users.
Right now I've only got a few e-mails it needs to send per day so it
only takes a second or two for the file to load/run, but this may
change to a few hundred pretty soon (new system, diff. content). The
content is almost all text, ~1 page long for each person. Does anyone
have any idea how many e-mails I could send out w/ this method
reliably? If the list becomes 100, instead of just a few, think it
will still work? 1000? more?

I find a lot of mass mailer services online, but I can't seem to find
ones that can run through a php code to determine content by user
(personalized). Are there alternatives to my current system that
anyone knows of?

Any thoughts will be appreciated. Thanks!!
If you can, avoid using SMTP to relay messages to a mail server. It is a
slow method to queue messages for delivery. If you are under Linux/Unix
like systems, it is better to use mail() function as it calls the
sendmail or equivalent program which injects the message on the mail
server queue directly. Even under Windows there are ways to avoid SMTP
protocol overhead.

Other than that, as for personalizing bulk-mail, there are many things
you can do to optimize deliveries by caching message parts that do not
change for each message. You may want to take a look at this MIME
message composing and sending class. It provides several tuning controls
to optimize message composing overhead.

http://www.phpclasses.org/mimemessage

Take a look at the test_smarty_personalized_mailing.php which shows how
to compose and send messages using Smarty to define message text or HTML
from templates.
--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Jun 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nancy | last post by:
Hi, Is there any one knows, if I want to use mod_python to handle my html form, I must have a SMTP server on my PC(winxp pro)? Where can I get a free SMTP server? I cann't follow mod_python's...
7
by: William Case | last post by:
Hi Folks, Does anyone have a line on some well written black box code that will handle SMTP mailing sessions and can be integrated into a VBA app? Thanks.
2
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail...
4
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to...
2
by: desais | last post by:
I am using the cdo.dll to send out emails in C#. But instead of connecting to my local smtp to forward the email I am changing the smtp server to the recipients server for each email. This works...
5
by: universalbitmapper | last post by:
Hi, I'm trying to send an e-mail from a .php script and ie6 returns this error: Warning: mail() : Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"...
6
by: Krish | last post by:
All, I want to have mail sending capabilities in my .NET application running on IIS6.0. I cannot use any enterprise's exchange server. I want to use the locally running SMTP service in the...
1
by: hemakrmmc | last post by:
hello, I need to send mail using php Mail(), 1. Our php(I my office) is connect to a remote sever ip is (192.168.5.250). 2. My machine is SMTP enabled. 3. php.ini file is changed in the server...
9
by: Keith G Hicks | last post by:
I have a vb app that runs on a server. It periodically checks for rows in a table that are ready to have data mailed out to clients. After it finds row(s) that are ready, it emails the info out and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.