Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

onerciller/go-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

📬 Mailer for Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages