|
Posted by Flamer on 07/18/06 22:37
eastcoastguyz wrote:
> Manuel Lemos wrote:
> > Hello,
> >
> > on 07/15/2006 01:07 AM eastcoastguyz said the following:
> > > I have a client who's web site needs to send out opt-in e-mail. I
> > > contacted the web hosting service who they intend to host this with and
> > > they have a limit of 500 e-mail messages sent per hour. I suspect most
> > > web hosting services have a limit on this, so I thought about how to
> > > address this. The e-mail being sent out would be personalized, and
> > > there could be other processes from this same web site sending out
> > > e-mail to a list too. So I thought about developing a mail que system
> > > written in PHP to help with this.
> > >
> > > If this already exists, please point me to it. If there is a better way
> > > to do this, I would be interested to hear it. Thanks!
> >
> > When you use the mail function in Linux, it uses sendmail or compatible.
> > In Linux, all MTA are compatible with sendmail. Sendmail is already a
> > queue system. There does not seem to be much point in duplicating a
> > sendmail function that it already does better than PHP could. PHP will
> > certainly will not override your ISP limits.
> >
> >
> > --
> >
> > 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/
>
> Thanks for your post. I didn't want to create my own mail queue system
> in an attempt to override the limits by the ISP, but to make sure I
> didn't exceed them.
I understand what you mean, in fact i have it on a todo list for one of
my project sites, i haven't even looked into it yet, i use my own
server so although i wouldnt have a limit i think it owuld be better
for the server and isp to regulate the mail flow, i was thinking of
maybe 1 email per second ect. since i havent looked into the details
myself yet, and since your on a shared host you will be very limited, i
would suggest perhaps write the info to a database row for each mail,
so:
bob@bob.com,subject,this is your message
james@joe.com,subject,hello how are you
then use a cron job that runs every 10 minutes that calls a php script
to pull the first 10 lines of the database, mails them then deletes the
row. ect..
Flamer.
Navigation:
[Reply to this message]
|