Re: [PHP] SMTP vs mail()



On Sat, January 12, 2008 4:28 am, Richard Heyes wrote:
Assuming you're talking delivery to a local MTA (which will
subsequently do the remote delivery), is speed really important?
For the amount of email I'm looking at (1000s, growing), yes.


Hmm, that's not quite what I was thinking of. The amount of emails
to
be delivered does not in my opinion affect how fast it needs to
happen.
Your local MTA will take a while to deliver those emails anyway, so
the
time from script to user is mostly dependent on that, which means
you're left with reducing the time from script to MTA. If you need
to
finish the script fast (in order for some user-intercation to
continue
perhaps), I would would just detach the script and carry on.

Sorry, yes the time of delivery is not so important as the time to
pump
the messages to the MTA. As long as the MTA has them and they get
delivered in a reasonable time frame I'm happy. The application is all
about mail delivery and the script has to return immediately, so I'll
be
launching a separate process to insert the addresses into a minimal
"mail_queue" table in my db, and then a 5 minutely cron script which
will pass them to the MTA.

If there's any way to re-configure the MTA to queue the messages for
later sending, that would save you a lot of overhead on the PHP end...

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: [PHP] SMTP vs mail()
    ... Your local MTA will take a while to deliver those emails anyway, ... you're left with reducing the time from script to MTA. ... finish the script fast (in order for some user-intercation to continue ... yes the time of delivery is not so important as the time to pump the messages to the MTA. ...
    (php.general)
  • Re: mail from: field question
    ... emails the results to a set of people. ... The script is triggered from ... devd and runs as root. ... The answer will probably depend on the MTA you're using (which you ...
    (freebsd-questions)
  • Re: multiple Domain name delivery problem
    ... Susan Conkey [MVP] ... with the known emails that were already there. ... this is the craziest problem i have seen w/ exchange & we have been ... was...does she have her "delivery point" set to the mailbox? ...
    (microsoft.public.exchange.admin)
  • Re: Queue Folder
    ... The Queue folder is for emails waiting for delivery. ... Badmail folder after the expiration, which can be configured in IIS. ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: Possible worm...please help
    ... I had started to notice that out bound emails were ... The inbound SMTP queue currently exceeds 4000 items. ... I also noticed that the Outbound Message Awaiting Delivery queue was filled ...
    (microsoft.public.exchange.admin)