473,396 Members | 2,087 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,396 software developers and data experts.

Sending emails to a large group

I have written a script to send an email to a large list of emails, it
works fine except for one slightly major thing. Each email needs to have
the receipient's email address at the bottom of the message for removal
purposes. This requires crafting a seperate email for each person. And
therefore I must send an individual email for each person. The problem
is rate. I need to know how I can rate limit the outgoing messages,
and/or make my mta (exim) send lots of messages in one connection (up to
50 per connection). Any help is much appreciated.

-David
Jul 17 '05 #1
3 2103
On Sun, 05 Dec 2004 20:41:03 -0600, David Wahl <dm****@nospam.wisc.edu>
wrote:
I have written a script to send an email to a large list of emails, it
works fine except for one slightly major thing. Each email needs to have
the receipient's email address at the bottom of the message for removal
purposes. This requires crafting a seperate email for each person. And
therefore I must send an individual email for each person.


I am not sure whether this is an acceptable solution, but since apparently
you put an HTML URL as a removal link, why don't you go all the way and do
the removal via a "mailto:" link instead of a "http://" one??

Such as: mailto:remove_me@your_domain.com

Then you'd simply remove (possibly, sending a confirmation email) whatever
email address the mail to remove_me happened to come from.

This way, all the emails become identical and you can send them via BCC in
batches - you might also send them with fsockopen to the relevant MTA's. I
know there are PHP classes that do just that.

Leonardo and his .015 EUR
--
:From: "Guglielmo Maria Euge Rinaldini" <guglielmo.rinaldini(at)virgilio.it>
:Message-ID: <tt********************@news2.tin.it>
:Provate a guardare gli ingredienti del famoso Labello che si usa per
:le labbra screpolate: Butirrospermum Parkii (sperma di maiale).
Jul 17 '05 #2

David Wahl wrote:
I have written a script to send an email to a large list of emails, it works fine except for one slightly major thing. Each email needs to have the receipient's email address at the bottom of the message for removal purposes. This requires crafting a seperate email for each person. And therefore I must send an individual email for each person. The problem is rate. I need to know how I can rate limit the outgoing messages,
and/or make my mta (exim) send lots of messages in one connection (up to 50 per connection). Any help is much appreciated.


IMHO, PHP is not good for this purpose. You may want to buy some
bulkmailers. If the numbers are only thousands, you may try
queuing--some PHP codes *were* available for that, IIRC.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #3
Hello,

David Wahl wrote:
I have written a script to send an email to a large list of emails, it
works fine except for one slightly major thing. Each email needs to have
the receipient's email address at the bottom of the message for removal
purposes. This requires crafting a seperate email for each person. And
therefore I must send an individual email for each person. The problem
is rate. I need to know how I can rate limit the outgoing messages,
and/or make my mta (exim) send lots of messages in one connection (up to
50 per connection). Any help is much appreciated.


Since you need to personalize the messages, you need to send separate
messages to each user. It is also recommended that you tell exim to just
queue the messages a deliver them next time the queue is run so your PHP
script does not have to wait for each delivery.

You may want to take at a look at this class that comes with special
support for bulk mailing of personalized messages. It has the
SetBulkMail function that hints the class to optimize itself for that
purpose.

The personalization of the messages is done just by replacing the parts
of the message that you want to change. You can also use Smarty as
template engine for defining your message bodies.

It also has a sub-class specialized on deliverying sendmail that is
compatible with exim that has options to tell it to just queue the
messages deferring delivery for next queue run.

http://www.phpclasses.org/mimemessage
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #4

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

Similar topics

10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
2
by: kimberly.shaffer | last post by:
Okay, I can automate sending of multiple emails with records using Groupwise and Access DB. But now what I need to do is send multiple fields associated with one field out automatically and can't...
11
by: Ron Vecchi | last post by:
I've used System.Web.Mail before but have never had the need to send attchemnets through it...until now. A client of mine would like a form on the website to allow a user to type up a message and...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
1
by: Steven Bazeley | last post by:
I need to send a large list of emails from a webform by clicking a single button. Microsoft's documentation for coding this seems straight forward and I'm about to begin experimenting with their...
8
by: windandwaves | last post by:
Hi Folk I want to send out a basic newsletter from my MySql database of contacts. Does anyone know a nice and simple bit of PHP that allows me to do this? TIA - Nicolas
2
by: nonobedo | last post by:
I need script for sending message to group of emails at the same time
3
by: IGD | last post by:
I don't know if this is the right place to post this or not. If not, could someone direct me elsewhere where I would find more information on how to solve my problem? Thanks! My problem is this:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
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,...

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.