Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

daily-warm

> 编程语言
Open source

❤️ Send an email to someone you care about everyday

196 stars0 likes2 views
WebsiteGitHub

About

❤️ Send an email to someone you care about everyday

Daily-warm

每天定时发邮件给你关心的人, 内容包含天气, one 的一句话, 一句英语, 一首古诗

Usage

bash
# 1. Config `.env` file in root dir, e.g.
MAIL_USERNAME = [email protected]
MAIL_PASSWORD = ***********
MAIL_HOST = smtp.qq.com
MAIL_PORT = 25
# 每分钟发一次
MAIL_CRON = "0/1 * * * *"
MAIL_SUBJECT = 每日一暖, 温情一生
MAIL_FROM = user
MAIL_TO = [{"email": "user", "local": "shaanxi/xian"}]

# 2.Build
go mod download
go build -o dwm.out *.go

# 3. Run
./dwm.out

Screenshot

Package

github.com/barryyan/daily-warm/gomail

go
// import "github.com/barryyan/daily-warm/gomail"
package gomail 

type Configuration struct{
  Host     string
  Port     uint16
  Username string
  Password string
  From     string
}
var Config = Configuration{}

type GoMail struct{
  From    string
  To      []string
  Cc      []string
  Bcc     []string
  Subject string
  Content string
}
func (gm *GoMail) Send() error {}

github.com/barryyan/daily-warm/api

…

其它语言版本

node robot-mail

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goemail-sendergo

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言