mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -25,12 +25,16 @@ func (t *SpamService) Classify(request *ClassifyRequest) (*ClassifyResponse, err
|
||||
}
|
||||
|
||||
type ClassifyRequest struct {
|
||||
// The body of the email
|
||||
// The raw body of the email including headers etc per RFC 822. Alternatively, use the other parameters to correctly format the message
|
||||
EmailBody string `json:"emailBody"`
|
||||
// The email address it has been sent from
|
||||
From string `json:"from"`
|
||||
// the HTML version of the email body
|
||||
HtmlBody string `json:"htmlBody"`
|
||||
// The subject of the email
|
||||
Subject string `json:"subject"`
|
||||
// the plain text version of the email body
|
||||
TextBody string `json:"textBody"`
|
||||
// The email address it is being sent to
|
||||
To string `json:"to"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user