Skip to content

dulumao/email

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

email

Build Status GoDoc

Send emails easily.

Example

package main

import "github.com/zemirco/email"

func main() {
  mail := email.Mail{
    From:    "the@internet.com",
    To:      "mirco.zeiss@gmail.com",
    Subject: "Hello there",
    HTML:    "<h1>Awesome</h1>",
  }
  err := mail.Send("smtp.amazonaws.com", 587, "user", "password")
  if err != nil {
    panic(err)
  }
}

Test

go test

License

MIT

About

Easily send HTML emails with Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%