xmail

command module
v0.0.0-...-9869af5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 11 Imported by: 0

README

XMail

这是一个用来发送邮件的 gRPC 服务,请在 application.yaml 中配置邮箱服务器,使用 env.mail.passwd 配置环境变量名,用于设置邮箱密码。

安装 protoc-gen-go 插件:

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

安装 protoc-gen-go-grpc 插件:

go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1

安装编译器 protoc,编译 proto:

protoc --go_out=. --go-grpc_out=. proto/email.proto

下载项目依赖的包:

go get

启动 server:

go run main.go email_grpc_server.go

测试 client:

go run test.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL