mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
28 lines
491 B
Protocol Buffer
28 lines
491 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package email;
|
|
|
|
option go_package = "./proto;email";
|
|
|
|
service Email {
|
|
rpc Send(SendRequest) returns (SendResponse) {}
|
|
}
|
|
|
|
// Send an email by passing in from, to, subject and a text or html body
|
|
message SendRequest {
|
|
// the name of the sender
|
|
string from = 1;
|
|
// the email address of the recipient
|
|
string to = 2;
|
|
// the email subject
|
|
string subject = 3;
|
|
// the text body
|
|
string text_body = 4;
|
|
// the html body
|
|
string html_body = 5;
|
|
}
|
|
|
|
message SendResponse {
|
|
}
|
|
|