onerciller / go-mailer

:mailbox_with_mail: Mailer for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-mailer

📬 Mailer for Go

package main

import (
	"github.com/onerciller/go-mailer"
)

var config = mail.Config{
	Host:     "smtp.yandex.com.tr",
	Username: "onerciller@yandex.com.tr",
	Password: "PASSWORD",
	Port:     "587",
	From:     "onerciller@yandex.com.tr",
}

func main() {
	mail := mail.New(config)
	mail.SetTo("onerciller@gmail.com", "onerciller@yandex.com.tr")
	mail.SetSubject("this is subject")
	mail.SetBody("this is body")
	mail.Send()
}

About

:mailbox_with_mail: Mailer for Go


Languages

Language:Go 100.0%