go-gomail / gomail

The best way to send emails in Go.
MIT License
4.32k stars 572 forks source link

Add syntax highlighting to Go example #92

Closed ivy closed 6 years ago

ivy commented 7 years ago

This pull request adds syntax highlighting to the example in the readme:

package main

import (
    "crypto/tls"

    "gopkg.in/gomail.v2"
)

func main() {
    d := gomail.NewDialer("smtp.example.com", 587, "user", "123456")
    d.TLSConfig = &tls.Config{InsecureSkipVerify: true}

    // Send emails using d.
}