1
0
Dima c1444ec377 Add docs vor 7 Monaten
..
auth.go 9c1adbc48f Add SMTP vor 7 Monaten
readme.md c1444ec377 Add docs vor 7 Monaten
smtp.go 9c1adbc48f Add SMTP vor 7 Monaten
smtp_config.go 9c1adbc48f Add SMTP vor 7 Monaten

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
)