Re: php mailing list operation



Hello,

on 02/27/2006 11:44 PM Richard Levasseur said the following:
I've had a similar question myself.
I don't want the email to contain a long To: or CC:, but I don't want
to loop a bunch because sometimes mail() takes forever to send.

Is there a way to simply queue them up and let the mailer daemon
process them at its leisure, so the mail() command returns nice and
quick?

Yes, some MTA provide means to just queue the message and do not wait
for delivery attempt.

Under Linux/Unix, sendmail and exim have switches for this. Under
Windows you can drop the messages in Exchange pickup folder .

If you want to go for these solutions, you may want to try this class.
It has sub-classes specialized in deliverying with different MTA:
sendmail (or exim, or postfix), qmail, SMTP, Exchange pickup folder,
etc.. Just call the class SetBulkMail function before entering the bulk
mail loop.

http://www.phpclasses.org/mimemessage

PS. Do not use SMTP for bulk mailing unless you do not have an
alternative. It is the slowest method of all.


--

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/
.



Relevant Pages

  • Re: Threading a server
    ... SMTP. ... needed the watchdog and with a reasonable amount of time. ... I am guessing that to deal with the timeout behaviour, ... The next message you posted commented on the loop. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Email using CDO
    ... on the SMTP server set to 10 minutes. ... "Jeff Dillon" wrote in message ... it could be an SMTP issue..perhaps it times ... If the extra loop was the problem, ...
    (microsoft.public.inetserver.asp.general)
  • Re: Exchange 2003 forwarding question
    ... To a certain extent based on your configured hop count in your SMTP ... "Sometimes a loop forms when an Exchange user sets up a rule to ...
    (microsoft.public.exchange.admin)
  • Re: Einzelne Mails werden immer wieder zugestellt.
    ... die Nachrichten haben IMMER die gleiche Nachten-ID. ... kein POP-Sauger nur SMTP. ... Irgendwo einen Loop oder so? ... Haben die mehrfach eintrudelnden Emails immer jeweils dieselbe ...
    (microsoft.public.de.german.exchange2000.general)