Forum Moderators: coopster

Message Too Old, No Replies

Custom Mass Mailing Script

         

rfontaine

6:56 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



I've created a custom script that attempts to send out a daily email (all opt-in addresses) to 3 or 4 thousand recipients.

I have already tried a couple of open source programs, and Lyris, none of which met my needs.

It's really pretty simple: the script reads the addresses one at a time from a database and sends out the same message to one and all using the PHP mail() function. It works quite well, according to my tests. However, I am wondering if there is a more efficient way of doing this, especially considering the list may double or triple in time.

Any ideas? Thank you in advance.

mcibor

11:14 pm on Nov 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can group the recipients. However remember, that as in normal mail the recipients will see each other then. If you don't want that you have to use one by one method.

You can look also in the manual:

[php.net...]
[php.net...]

There was one solution with direct smtp, however I don't know what it is

Piece of info:

Parameters

to

Receiver, or receivers of the mail.

The formatting of this string must comply with RFC 2822. Some examples are:

user@example.com
user@example.com, anotheruser@example.com
User <user@example.com>
User <user@example.com>, Another User <anotheruser@example.com>

hope this helps
Michal Cibor

rfontaine

3:27 pm on Nov 9, 2005 (gmt 0)

10+ Year Member



I think direct smtp is windows only?

AcsCh

2:07 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



there is a class, smtp class, look for "smtp class script" which lets you send mail directly to an smtp server. With this you should be able to send to multiple emails with every send.

Another easier solution would be to put the recipients in the bcc field, to avoid, that they can see each other.

However take care of another aspect. If you are using too fancy methods, your newsletter might trigger spam filters, as any "bulk-method" which is traceable will give a hint to the filter.