Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to reply to emails sent by application server #111

Open
AGhost-7 opened this issue Sep 8, 2016 · 9 comments
Open

Ability to reply to emails sent by application server #111

AGhost-7 opened this issue Sep 8, 2016 · 9 comments

Comments

@AGhost-7
Copy link

AGhost-7 commented Sep 8, 2016

Use case:

Users can interact with the application by sending emails to it. You can also just reply directly to an email notification and it will update the thread stored in the app. Similar to how you can interact with issues on Github. I'd like to be able to test this kind of functionality using the UI in Mailhog.

@ian-kent
Copy link
Member

Sorry, I don't really understand why this would be useful? What would replying to an email actually do?

@cwbit
Copy link

cwbit commented Jan 13, 2017

e.g. if you're building something like a support / customer management platform where emails can be sent directly to customers from the system and when the customer replies your platform interacts with the email to update contact logs, notes, etc. based on the email reply.

Like how github issues send emails to watchers and replying to that email will actually post your reply as a comment on the issue

@ian-kent
Copy link
Member

That makes sense, but I'm not sure how MailHog helps with that? Any reply from the UI would just be sent to MailHog, which you'd need to read from the API, and I can't see how that is useful?

If your application is designed to receive emails via SMTP (i.e. it's acting as a mail server itself), that isn't something which is supported by MailHog - though in theory it could.

@AGhost-7
Copy link
Author

What I'm suggesting is adding such a feature. I tried to add the feature but got stuck trying to test out my change. Having some information on how to get started to develop for this project would help greatly as I'm not familiar with Go.

@urbaniak
Copy link

From web interface there can be a way to reply to the message (which gets stored in different inbox, accessible only via IMAP for example). That will allow to fully test some message replies (just like reply to comment via email in github) using MailHog.

@yelizariev
Copy link

Is this issue in Confused state? We actually need the same. For example to test how the app handles replies.

@jcuna
Copy link

jcuna commented Apr 17, 2019

Found a use case for this today as well. Building a system that hides original From email field to all support staff and instead uses message-id, etc for tracking. Being able to reply within Mailhog would have made this work I'm doing much faster.

@ndench
Copy link

ndench commented Jan 21, 2020

Ideally MailHog would be able to send the reply email directly. The way this is usually implemented is with the Reply-To email header. I also feel that the majority of people implementing replyable email notifications (myself included) are using some sort of email/SMTP service such as Postmark, SendGrid, AWS SES, etc.

So MailHog could accept SMTP credentials from environment variables and send the replies that way, or it could use the base system mail() command.

@ndench
Copy link

ndench commented Jan 22, 2020

MailHog actually has the ability to "Release" an email. So a workaround for the moment is enter your SMTP service details into MailHog and release the email to an address you control. Then you can reply from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants