Dima c1444ec377 Add docs 7 bulan lalu
..
auth.go 9c1adbc48f Add SMTP 7 bulan lalu
readme.md c1444ec377 Add docs 7 bulan lalu
smtp.go 9c1adbc48f Add SMTP 7 bulan lalu
smtp_config.go 9c1adbc48f Add SMTP 7 bulan lalu

readme.md

Usage example

client, err := smtp.NewSMTP(
    smtp.NewConfig(
        smtp.WithHost("smtp.example.com"),
        smtp.WithUsername("username"),
        smtp.WithPassword("password"),
        smtp.WithPort(587),
    ),
)

if err != nil {
    // TODO
}

err = client.Send(
    "recipient@mail.com",
    "email subject",
    "email content",
    false // is HTML content type
)