Skip to content

amsharinsky/xtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xlsxToMail

    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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages