sqlQuery := `SELECT * FROM table`
rows,_:=conn.Query(sqlQuery)
mail:=xlsxToMail.New()
mail.MailServer=xlsxToMail.MailServer{
Smtp: "smtp.yandex.ru",
Port: "465",
Username: "login@yandex.ru",
Password:"dsfsdfsfsd",
}
mail.MailSettings=xlsxToMail.MailSetting{
Subject: "test",
From: "login@yandex.ru",
To: []string{"dd@mail.ru"},
Charset: "utf-8",
}
mail.ExelFileSettings=xlsxToMail.ExelFileSetting{
SheetName: "test",
}
mail.SendFile(*rows)
-
Notifications
You must be signed in to change notification settings - Fork 0
amsharinsky/xtm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published