mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[PR #279] [CLOSED] Added send message API endpoint #501
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#501
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/axllent/mailpit/pull/279
Author: @ryan0x44
Created: 4/18/2024
Status: ❌ Closed
Base:
develop← Head:send-message-api📝 Commits (1)
02ab5b3Added send message API endpoint📊 Changes
4 files changed (+319 additions, -2 deletions)
View changed files
📝
server/apiv1/api.go(+201 -0)📝
server/apiv1/swagger.go(+115 -0)📝
server/server.go(+1 -0)📝
server/smtpd/smtpd.go(+2 -2)📄 Description
This adds an API endpoint for sending messages via HTTP, per feature request #278
Example usage:
Note that in order to re-use code, I had to make the smtpd package
mailHandlermethod public.Open to suggestions for any changes but thought it would be nice to put something together to at least solve my immediate need.
Thanks for building mailpit!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.