Skip to content

Doc Request: smtp forwarding and API V2 #36

@jstockho

Description

@jstockho

Let me start by saying I love mailhog. I just found it and got it up and running in no time. Great work! I'd like to take advantage of the feature to forward messages to an SMTP server, but I don't know how to set that up. I didn't see it in the CONFIG.md file. I don't know Go (I'm a Java dev), but I found the following snippet in the config.go file from the Server repo:

flag.StringVar(&cfg.OutgoingSMTPFile, "outgoing-smtp", envconf.FromEnvP("MH_OUTGOING_SMTP", "").(string), "JSON file containing outgoing SMTP servers")

So, I know I need a file with JSON, but what is the expected format?

Also, I noticed that when using the web client I could see the API calls to the server, which is cool, but I noticed that it uses v2. The docs are still for v1. I think I can get most of what I need from the server output, but I was wondering if there were other nuggets of gold I hadn't discovered. For example, the docs don't cover search requests, but I was able to see them when using the search feature in the UI.

If you could update the docs to include the above information, that would be awesome.

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions