Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.47 KB

SendMailAPI.md

File metadata and controls

71 lines (44 loc) · 1.47 KB

\SendMailAPI

All URIs are relative to http://localhost

Method HTTP request Description
SendEmail Post /mail-transfer-service Send email

SendEmail

SendEmail(ctx).Body(body).Execute()

Send email

Example

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)
    }
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSendEmailRequest struct via the builder pattern

Name Type Description Notes
body string

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: message/rfc822
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]