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

auth for mail release #15

Closed
derwassi opened this issue Dec 12, 2014 · 4 comments
Closed

auth for mail release #15

derwassi opened this issue Dec 12, 2014 · 4 comments

Comments

@derwassi
Copy link

There's no way to release mail via a smtp server that requires username/password.
Could you please add this?

Furthermore it would be great to specify default values for username/password/host/port via environment variables or command line options.

@ian-kent ian-kent added this to the Go-MailHog v0.08 milestone Dec 12, 2014
@ian-kent
Copy link
Member

Good idea :) 👍

@pedromorgan
Copy link

In fact I might take a stab at this myself.. not a go exper but I;ll give it a shot ;-)

@ian-kent ian-kent modified the milestones: Go-MailHog v0.08, Go-MailHog v0.09 Dec 21, 2014
@ian-kent
Copy link
Member

ian-kent commented Jan 4, 2015

This is mostly implemented, username/password are supported for PLAIN and CRAMMD5 mechanisms, both via API and web UI.

There's also support for saving SMTP servers via the API and web UI when releasing a message (they can be reused for the rest of the MailHog session, but are lost when its restarted).

You can also load SMTP servers from a JSON file with the flag -outgoing-smtp or environment variable MH_OUTGOING_SMTP to persist between restarts.

@ian-kent
Copy link
Member

I'll close this for now - the implementation should do everything you needed

I might come back to it and clean it up a bit in future, but the original intention for SMTP release was to forward messages to a real destination, which typically doesn't require authentication anyway.

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

3 participants