TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ethereal Email – A fake SMTP service

78 pointsby andris9over 7 years ago

14 comments

justboxingover 7 years ago
Not trolling, but why would any developer need a service like this? Isn&#x27;t that what Mocking frameworks and Interfaces (Interface driven design) are for?<p>Ex: I would create an interface called IMailService with the operations like Send etc, and once my application is ready, just swap the concrete implementation of the MailService class with the one that talks to the real mail service using Dependency Injection.<p>If it&#x27;s not for developers, who would use something like this?
评论 #15413138 未加载
评论 #15412773 未加载
评论 #15415519 未加载
评论 #15413734 未加载
评论 #15412940 未加载
评论 #15412832 未加载
评论 #15412752 未加载
0x0over 7 years ago
If you are using &#x2F;usr&#x2F;sbin&#x2F;sendmail style delivery, for example via the built-in postfix implementation on macOS and many linux-like systems, it&#x27;s fairly easy to configure postfix to rewrite absolutely everything to go to your own email address. This can be quite helpful during development, because not only do you get to see the emails as they are delivered, but you can also worry less about sending development emails out to random addresses around the world. (Look into &quot;recipient_canonical_maps&quot;)
评论 #15413437 未加载
评论 #15413035 未加载
AceyManover 7 years ago
My team uses mailcatcher, also, but (partly) for reasons I&#x27;ve not yet seen mentioned:<p>Our primary application allows us to safely import recent dumps of the production databases into select CI systems, of which some tables have user records with real email addresses for report sending, etc.<p>In the case that the code which sanitizes these records misfires or otherwise fails to do its job, at least we won&#x27;t send random emails to actual customers. I know we&#x27;ve all gotten those from a vendor at one time or another and it&#x27;s a corporate level face-palm that&#x27;s worth the extra effort to avoid. Belts &amp; suspenders, defense-in-depth, and all that.
jordanabover 7 years ago
We always use MailTrap for our projects. It&#x27;s a fake SMTP server with a webbased inbox. Nothing to install, you just have to configure some SMTP credentials in your applications. <a href="https:&#x2F;&#x2F;mailtrap.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mailtrap.io&#x2F;</a>
Operylover 7 years ago
If the developer is reading: you probably shouldn’t tell your users to click banner ads, if I recall correctly that’s grounds for termination:<p>“8. How is this sustainable Ethereal Email service is funded by the ads displayed on Nodemailer.com. So don&#x27;t forget to click on these banners!”
Moto7451over 7 years ago
Funny. Just today I needed a locally hosted version of this and came across: <a href="https:&#x2F;&#x2F;mailcatcher.me" rel="nofollow">https:&#x2F;&#x2F;mailcatcher.me</a><p>So far my experience has been good. I get to work on some email sending code on a wifi-less airplane.
therealidiotover 7 years ago
I recently learned of MailDev<p><a href="http:&#x2F;&#x2F;danfarrelly.nyc&#x2F;MailDev&#x2F;" rel="nofollow">http:&#x2F;&#x2F;danfarrelly.nyc&#x2F;MailDev&#x2F;</a>
jwcruxover 7 years ago
I also recommend MailHog[0]. I&#x27;ve had nothing but good experiences with it, and it was dirt simple to install.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;mailhog&#x2F;MailHog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mailhog&#x2F;MailHog</a>
评论 #15413688 未加载
sebazzzover 7 years ago
I like Papercut better. It runs on your own machine and you can configure forwarding rules in case you want to test e-mail on other clients like Outlook or GMail. The interface is simple and clean.
squiggy22over 7 years ago
Big fan of <a href="https:&#x2F;&#x2F;mailtrap.io" rel="nofollow">https:&#x2F;&#x2F;mailtrap.io</a>
Xeoncrossover 7 years ago
I want to know if there are any httperf&#x2F;seige like tools for email. I would love to blast my server with 100k valid &amp; invalid emails and see how it does.
misky8over 7 years ago
There&#x27;s also Mailinator - Web &amp; API <a href="https:&#x2F;&#x2F;www.mailinator.com" rel="nofollow">https:&#x2F;&#x2F;www.mailinator.com</a>
mrjdover 7 years ago
Also <a href="https:&#x2F;&#x2F;letterb.in" rel="nofollow">https:&#x2F;&#x2F;letterb.in</a> which also has an API if it&#x27;s handy to anyone.
LinuxBenderover 7 years ago
How is this better than using smtp-sink that comes with postfix?
评论 #15411421 未加载
评论 #15412626 未加载