473,394 Members | 1,726 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,394 software developers and data experts.

best ways for mass mailing

hi all,

I would like to understand which are the best ways to send bulk
mailings like for newsletters and so on ( not spamming, always to
receivers who opt-in ).

I am not looking for code for now , I have found some very interesting
classes and I also have my own scripts, I just want to know all the
options available and why one is better of another .

So, if have to send just a few copies to, say, less than one hundred
people I can use the mail function, If I have to send , say, 20
thousand emails I will have to hire dedicated mail servers, but what if
I have to deliver a few hundreds emails ?
What is usually the max limit using my shared hosting before moving to
a dedicated mail server ?

What is the best way ? maybe splitting the delivery in batches using
the default mail ( sendmail ) or by SMTP ?

TIA to who will enlight me on this matter

johnny

Feb 17 '06 #1
1 3085
Hello,

on 02/17/2006 08:47 AM johnny said the following:
I would like to understand which are the best ways to send bulk
mailings like for newsletters and so on ( not spamming, always to
receivers who opt-in ).

I am not looking for code for now , I have found some very interesting
classes and I also have my own scripts, I just want to know all the
options available and why one is better of another .

So, if have to send just a few copies to, say, less than one hundred
people I can use the mail function, If I have to send , say, 20
thousand emails I will have to hire dedicated mail servers, but what if
I have to deliver a few hundreds emails ?
What is usually the max limit using my shared hosting before moving to
a dedicated mail server ?

What is the best way ? maybe splitting the delivery in batches using
the default mail ( sendmail ) or by SMTP ?


Mailing has two phases: queueing and delivering. Applications do not
deliver, they only queue in a MTA (Mail Transfer Agent) that takes care
of the delivery soon or later.

Queueing can be very fast if you inject the messages directly in the
MTA queue and tell it to deliver it later on the next queue run. This
way your queueing script takes much less time to queue all messages.

NEVER use SMTP for queueing, unless you have no option. That is the
slowest way to queue messages, despite there some people believe
otherwise. Queueing via SMTP is just another way to inject messages in
the MTA queue. The problem is that you need to establish a TCP
connection to the same machine. That is a silly solution when you can
call the sendmail program directly to do the same thing without TCP
connections overhead. SMTP should only be used when you have no way to
communicate with the MTA, like for instance when the MTA is in another
machine, or there is no sendmail installed in the local machine.

In sum, always use sendmail (or equivalent) to queue your messages. Some
sendmail implementations (or emulations) provide options to tell it to
defer deliveries. If possible use that option.

You may also want to take a look at this class that can compose and send
messages using several different queuing alternatives implemented by
sub-classes. There is one sub-class specialized in sendmail that
provides control over those sendmail option. Just call the SetBulkMail
function, and it attempts to optimize message queueing for mass mailing.

The class documentation has more mass mailing tips, like avoiding
personalization to take advantage of message body caching speedup.

http://www.phpclasses.org/mimemessage

As for the deliverying phase, there is not much you can do because it is
something under the control of the MTA. What I can tell you is that the
outgoing bandwidth plays a decisive role in the final delivery time. If
you have more outgoing bandwidth, you can deliver messages faster and
eventually more messages at the same time.

Beware that some hosting companies say they offer unlimited bandwidth
but in fact they have impose cap values to limit the outgoing transfer
rates per hosting client. That is important to not let one client suck
all the outgoing bandwidth.

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Feb 17 '06 #2

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

Similar topics

6
by: Jeffrey Silverman | last post by:
Hi, all. Sorry, first off, for the kidna weird selection of crossposted groups, but this question touches on aspects of discussion in each of the groups. So I have a group of around 500 email...
3
by: somaboy mx | last post by:
I'm putting together a mass mailing application for sending out newsletters from a site admin area (no spam). I'm wondering how I can automate the removal of bounced addresses in this...
5
by: Roger Jack | last post by:
I have just finished reading Code Generation In Action which uses Ruby for code generation. I would like to use Python instead. Is Cheetah the best tool to use for templating source code files and...
4
by: Aplus | last post by:
Hi, I am web admin for a school's website and now and again I have to send emails to those who have signed the guestbook and have consented to this. Now I have a distribution list within outlook...
2
by: Espen | last post by:
Hi, I just took over maintaining an ASP codebase for sending out newsletters by mail, as well as basic subscriber maintenance. Thing is working ok today, with ~200 subscribers, but there are...
1
by: Steve | last post by:
Hi all Ok then I have searched through the back postings for a while now on google and read some interesting stuff on how to model a typical client / order db however.... My problem is that I...
3
by: Gil \(Asp.net Developer\) | last post by:
8
by: Roger Dodger | last post by:
I have to send out 2500 e-mails to student survey recipients. The e-mails will appear to come from the specific departments that they belong to. I'm utilizing PHPmailer in the scripts I wrote to...
3
by: cordial_camaraderie | last post by:
I need to send 30,000 emails to our NewsLetter Subscriber, I tried to use our hosting Site and for the worst part We we banned and our site was stopped. I am using PHP script, mail() function to...
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
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
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
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...
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
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...

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.