473,748 Members | 8,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

massive email

Hi,

I'm trying to make a newsletter application in php (using mail() ).
This application is supposed to look in a MySQL database and generate a
list of emails and first names.
Then it should send an html formated message.
In the theory, I know how to do that, but the hic is ... There are
about 30 000 members.
So I get different kind of errors everytime I try something.
Like 500 Internal Server Error,
or the page would load forever and actually not do everything,
or I would get "Fatal error: Allowed memory size of 8388608 bytes
exhausted at (null):0 (tried to allocate 129 bytes)" ...

I tried both my sending multiple mail() functions in a loop (the way i
prefer), and only one mail() function with the whole coma-separated
list of emails.

Is there an easy way to send massive email?
Please help.

Thank You,

Nathan

Jul 17 '05 #1
12 5100
Hello,

I've never written an application to send such large batches of email,
but I may be of some help. Since the script is going to take some time
to run, it's not a good candidate for a web-based script. Instead, I
would create a script (could still be written in PHP) that runs
independently of the web server (e.g., apache) so you won't have to
worry about timeouts, etc. Shell access would be very helpful for
testing this.

I would call mail() with one email address per call, not a large
comma-separated list.

Hopefully someone with specific experience with mass emailing can help
more here.

Mark Aardsma

Jul 17 '05 #2
I noticed that Message-ID:
<11************ **********@z14g 2000cwz.googleg roups.com> from nasht
contained the following:
Then it should send an html formated message.


Good. That'll make sure it hits the bit bucket good and fast with me.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #3
In article <11************ **********@f14g 2000cwb.googleg roups.com>,
ma**@aatechserv ices.com says...
I've never written an application to send such large batches of email,
but I may be of some help.


I don't know if it's been mentioned, but sending LARGE batches of email
is very likely to get the sender black-listed or have their account
yanked by their provider. I know of instances where sending just 2500
emails, from a non-profit church, to people that provided their email
address, got their service disconnected.

--
--
sp*********@rro hio.com
(Remove 999 to reply to me)
Jul 17 '05 #4
In article <MP************ ************@ne ws-server.columbus .rr.com>,
Leythos <vo**@nowhere.l an> wrote:
In article <11************ **********@f14g 2000cwb.googleg roups.com>,
ma**@aatechserv ices.com says...
I've never written an application to send such large batches of email,
but I may be of some help.


I don't know if it's been mentioned, but sending LARGE batches of email
is very likely to get the sender black-listed or have their account
yanked by their provider. I know of instances where sending just 2500
emails, from a non-profit church, to people that provided their email
address, got their service disconnected.

--


The non-profit I'm working with wants to do this to it's members. I
said for them not to or they're loose their internet connection. I
checked with their ISP and unless the list is double opt-in validated,
service would terminated almost immediately. That was a wake-up call
for them.

As an alternative, the ISP offered access to their mailing-list server
(majordomo) which is completely configurable. We created a list and you
have to send email to an address to request to be put on it. Then
confirm by replying a "Are you sure you want to do this?" email. It's a
simple matter to provide a button on the web site to "sign me up for
electronic notification" that sends the initial email.

My advise, don't send the large batches of email unless you've confirmed
the recipients want the email. And provide a way to "opt-out" when you
ignore this advise and send out the emails anyway.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #5

"nasht" <na*****@gmail. com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .

Is there an easy way to send massive email?
Please help.


Hire a spammer? Write your own variant of Netsky?
Jul 17 '05 #6
Thanks for those advices.

For the first one given (run it on local), it's a good idea (except I
run Windows on a laptop, which i think is not that great for php).
Also it could only buy me a little bit more performance, not a large
scale solution (the website I work for is growing fast).

For the rest of the advices, they seemed more like legal advices.
I'm not really concerned about the legal stuff, that's not my
department :)
But of course I'll forward them your comments about that (will they
care? I don't know...)

But back to the technical issue itself, there has to be a way.
Very large scale companies do that sometimes (like Amazon, yahoo,
microsoft...).
Look up the email addresses, send them a message. It looks simple like
that. How do they do it?
They must have much more than 30 000 customers...

Thank You,

Nathan

Jul 17 '05 #7
On 17 Dec 2004 14:24:03 -0800, "nasht" <na*****@gmail. com> wrote:
I'm trying to make a newsletter application in php (using mail() ).
This application is supposed to look in a MySQL database and generate a
list of emails and first names.
Then it should send an html formated message.
Presumably you mean that it will send an HTML e-mail to those who
chose bloat and plain text to those who did not?
In the theory, I know how to do that, but the hic is ... There are
about 30 000 members.


IMO, your safest bet is to send the e-mail once - to an outsourced
delivery service, based upon a "double opt-in" list. That way you send
one e-mail and they handle the distribution to the validated
recipients. I can't tell where you are posting from, but the details
of a legitimate UK based service are at:
http://www.dsvr.co.uk/Services/E-Mar...Marketing.html

There is a point where re-inventing the wheel is pointless, and
30,000 recipients seems like you have passed it.

--
------------------------------------------------------------------
- Stuart Millington ALL HTML e-mail rejected -
- mailto:ph***@ds v1.co.uk http://w3.z-add.co.uk/ -
begin OE is broken read MS knowledgebase Q265230
Jul 17 '05 #8
On Fri, 17 Dec 2004 15:58:15 -0800, Michael Vilain
<vi****@spamcop .net> wrote:
The non-profit I'm working with wants to do this to it's members. I
said for them not to or they're loose their internet connection. I
checked with their ISP and unless the list is double opt-in validated,
service would terminated almost immediately. That was a wake-up call
for them.
One of work's customers was told this before they signed up to us.
Almost a year later, after spaming me (postmaster at their "ISP") they
have stated that they will ignore our T&C's and continue to use their
non-verified mailing list which they compiled in the years before
their contract with us. I would like to terminate their account now,
but I'm the only person they've spam'ed so far and they are friends
with the company directors :(
As an alternative, the ISP offered access to their mailing-list server
(majordomo) which is completely configurable. We created a list and you
have to send email to an address to request to be put on it. Then
confirm by replying a "Are you sure you want to do this?" email. It's a
simple matter to provide a button on the web site to "sign me up for
electronic notification" that sends the initial email.


I set that up for free for them (not Majordomo, which I've used for
internal lists, but a simpler script - mailman?) and they are still
unwilling to use it to validate their previously un-validated list. I
gave up :(

--
------------------------------------------------------------------
- Stuart Millington ALL HTML e-mail rejected -
- mailto:ph***@ds v1.co.uk http://w3.z-add.co.uk/ -
begin OE is broken read MS knowledgebase Q265230
Jul 17 '05 #9
In article <1h************ *************** *****@4ax.com>,
Stuart Millington <ne**@dsv1.co.u k> wrote:
On Fri, 17 Dec 2004 15:58:15 -0800, Michael Vilain
<vi****@spamcop .net> wrote:
The non-profit I'm working with wants to do this to it's members. I
said for them not to or they're loose their internet connection. I
checked with their ISP and unless the list is double opt-in validated,
service would terminated almost immediately. That was a wake-up call
for them.


One of work's customers was told this before they signed up to us.
Almost a year later, after spaming me (postmaster at their "ISP") they
have stated that they will ignore our T&C's and continue to use their
non-verified mailing list which they compiled in the years before
their contract with us. I would like to terminate their account now,
but I'm the only person they've spam'ed so far and they are friends
with the company directors :(
As an alternative, the ISP offered access to their mailing-list server
(majordomo) which is completely configurable. We created a list and you
have to send email to an address to request to be put on it. Then
confirm by replying a "Are you sure you want to do this?" email. It's a
simple matter to provide a button on the web site to "sign me up for
electronic notification" that sends the initial email.


I set that up for free for them (not Majordomo, which I've used for
internal lists, but a simpler script - mailman?) and they are still
unwilling to use it to validate their previously un-validated list. I
gave up :(


Just report the spammers to the Department of Homeland Security. Oops.
Wrong country. Never mind....

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #10

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

Similar topics

3
1486
by: lawrence | last post by:
If you're doing extensive formatting of output from a database, then you can't ask for all of a type of entry ("SELECT * FROM mainContent") and print it to the screen. On the one hand, it is an annoying thing to do to one's users, and on the other hand, the problem I've run into, with only a few hundred records you start to run into PHP's default 30 second time out. Besides paging, what are some of the strategies people are using to get...
4
1493
by: Hallvard B Furuseth | last post by:
I have a program which starts by reading a lot of data into various dicts. When I moved a function to create one such dict from near the beginning of the program to a later time, that function slowed down by a factor of 8-14: 38 sec at 15M memory usage, 570 sec at 144M, 330 sec at 200M. Is there anything I can do to fix that? When the program is running, the system has 18M free memory and is not doing any swapping. `python -O' did...
1
1804
by: | last post by:
Hi- I was curious if anyone has had good luck using one of the commercial .NET FTP client libraries to perform massive LIST commands. I have tried various free libraries with no/little success, either they time out or throw an error about the list being too long. There are easily hundreds of thousands of files spread over 100 different directories. I need to download a complete listing of all files and modified dates in order to...
78
4913
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would the use of Dreamweaver be of great help?
15
1815
by: jools | last post by:
I'm having trouble modifying some code written by someone else. The code is very dense and obscure but does work fine. However I need to insert a block of my own and I've hit what I assume is a buffering problem.(If there's another answer I'd be grateful ...) The problem is PHP is refusing to do things in the correct sequence. I've tried all the variations of flushing I can think of without success. Can anyone suggest how I can force...
7
1858
by: Ming | last post by:
For example, 100,000 records, each record has 10 fields and may belong to one or more categories. How shall I save those records in DB? I think it is a very typical concern for most online shopping mall. Option 1) A table with all 100,000 records, and 10 fields for each record Option 2)
2
1084
by: Sjoerd Mullender | last post by:
On 2008-04-21 08:01, Brian Vanderburg II wrote: That is just mailman (the mailing list software) keeping track of things. If there were a bounce, mailman can determine from the address of the bounce message (the bounce gets sent back to the Sender, not the From) which address bounced. So *all* python-list messages you get have that Sender. In other words, these spams do not come from you.
4
2617
by: stefano.troiani | last post by:
Hi, I have a web site that sends emails to some 17000 newsletter subscribers, the script takes about 5 minutes to complete the task, depending of the size of the attachment. The problem is that sometime it takes so much time that is difficult to know if something is going wrong, and sometimes the script terminates with timeout. I thought to solve the timeout question with a set_limit_time() but i am not sure where to put this line:...
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9238
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.