Dima c1444ec377 Add docs | 7 mesiacov pred | |
---|---|---|
.. | ||
auth.go | 7 mesiacov pred | |
readme.md | 7 mesiacov pred | |
smtp.go | 7 mesiacov pred | |
smtp_config.go | 7 mesiacov pred |
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
)