Why SMTP still matters today
resend.com
resend.com
Thank you for this ad. Other than that, the article adds nothing of value.
Chill down my spine.
> This is why we support modern technologies like React for email building and Serverless for sending.
They are referring to the generation and sending of emails not suggesting some radical change. Serverless for email and DSLs (like React) for email temples are not new concepts either.
Also, try to create a web app that mimics a FTP server. ( a real production one ) you’ll see how much FTP does and you didn’t know.
* And it's "the arpanet"
* It's a pain in the butt with NAT, which is something that unfortunately has to be accounted for in the internet these days.
* NAT traversal requires deep packet inspection and is a bloody pain, because since IP addresses and ports are written in text it means that packet sizes may change, requiring the rewrite of every single packet afterwards at a serious performance cost.
* No SSL for you on the data channel due to this either.
* The binary/ASCII mode is awful
* Data transfer lacks good status indications. Is the data socket close an end of file, or a problem to be reported?
* Directory listing is not standard and has a dozen possible formats
* The entire protocol is made for interactive commandline use, which is really an annoyance in modern times.
* Anonymous access requires a fake, non-standard login. Which sometimes requires reading the MOTD, but see above.
Fortunately we do have a replacement: WebDAV. Layers on nicely on top of HTTP and backwards compatible with it, goes trivially through firewalls, can be encrypted, directly listings are standard, and highly amenable to automation and GUIs. It's also well supported and you can mount WebDAV servers as a share easily.
And even in the early 2000s many email providers didn't offer IMAP. Their view of an email service was much simpler: there's a queue of incoming emails you can fetch with POP, and a queue of outgoing emails you can append to via IMAP. Having folders and most of the state of the email client synced to the server via IMAP is a radically different philosophy that only became useful when you logged in from multiple devices
However, once everyone rolled out IMAP and deprecated (explicitly or implicitly) POP, why didn't they also deprecate SMTP (for clients) in favour of clients just putting outgoing mail to an Outbox folder over IMAP?
Furthermore, there are many use cases where clients only send, like notification emails or sending reports. Those use cases would become more complicated if the clients were forced to use IMAP. For one, you wouldn’t want to give all of them access to all email in other folders — or even to emails in the outbox sent by other clients.
> The clients doing SMTP themselves allows them to communicate sending failures to the user. How would you do that for an email just sitting in an IMAP folder?
I would introduce a folder for logs. Also make the server move messages it succesfully sent from Outbox to Sent folder.
By the way, I wish the whole email system would have been extended to make it possible to attach (not in the way we attach files, not integrated in the message, only visible to the owner/admin of the mail box where the message is stored, not communicated to other servers/clients) comments to email messages so I would be able to attach my thoughts&tags to a message I received and the server could attach diagnostic data about delivery details.
Oh wait, that's actually a startup.
I'm not sure if people working with these protocols have built applications implementing their specifications before, but they should. It affords you a much better picture of why these protocols are designed as they are, good and bad.
I discovered how much i like expect/tcl. There’s no need to use a library. A simple 100 line script does what i need.
I know there are some caveats preventing XMPP from becoming the one protocol to rule all the chats, but why not use it for email exchange?