3 ms·
It can be that slow, yes. There is no assurances that will be fast, you're just hoping it will be. Now you could argue "that's true of anything!" but in genera
by UnoriginalGuy 14y ago
It can be that slow, yes. There is no assurances that will be fast, you're just hoping it will be.
Now you could argue "that's true of anything!" but in general you are forced to depend on local IO/CPU/RAM otherwise your site is struggling in general, by adding DNS/SMTP/etc you're just adding more "stuff" that your site relies upon.
Plus SMTP servers are "allowed" to go offline for short periods. The client should try to resend the email 2-4 additional times before giving up. Clearly a PHP script cannot do that.
- jcampbell1 14y agoI am totally confused. Who uses an SMTP server written in PHP? mail() just writes a bit of stuff into a mail queue by default.
- UnoriginalGuy 14y agoPeople set their PHP config to connect to a remote SMTP server rather than a local queue. It isn't something you can control in the code.
- jcampbell1 14y agoThanks, I understand. Configuring PHP that way would be an unmitigated disaster. If you want that functionality, it makes the most sense to configure Exim or whatever to do that for you.