473,586 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1803
NC
On May 20, 1:45 pm, Josh <jjreic...@gmai l.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...@gmai l.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*******@attgl obal.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_per sonalized_maili ng.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
2328
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 manual example (http://www.svencoop.com/manual/mod/mod_python/tut-pub.html), why ... Thanks a lot.
7
15443
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
91030
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 objects. I was able to run my application fine for roughly 1500 email messages. The next time I tried sending mail, it stopped working with the...
4
2463
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 be used in an intranet environment: MailMessage Message = new MailMessage(); Message.To = ... .... SmtpMail.SmtpServer = ...
2
2067
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 just fine in all of the tests that I have done. The issue I am having though is that although the thread that handles mailing a group of emails with...
5
12325
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" setting in php.ini or use ini_set() in C:\wamp\www\PAMWD\chap11email\sendmail.php on line 12
6
420
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 webserver to send the emails. The webserver will have a public IP and a domain will be registered for the web server.
1
1662
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 folder as per the requirement. but i could not send the mail. please help me how and where to configure smtp and php.ini file and wat are the...
9
1274
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 then marks the rows as having been sent. It all works fine except for one thing. There have been a couple of times when the 2nd part chokes due to...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.