All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
SendEmail | Post /mail-transfer-service | Send email |
SendEmail(ctx).Body(body).Execute()
Send email
package main
import (
"context"
"fmt"
"os"
openapiclient "go.opscenter.dev/james-go-client"
)
func main() {
body := "body_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.SendMailAPI.SendEmail(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SendMailAPI.SendEmail``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiSendEmailRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | string |
(empty response body)
No authorization required
- Content-Type: message/rfc822
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]