Skip to content

Instantly share code, notes, and snippets.

View ariexx's full-sized avatar
🎯
Focusing

Muhammad Arief ariexx

🎯
Focusing
View GitHub Profile
@ariexx
ariexx / email_driver_configuration.md
Created November 19, 2024 19:41
Sending email with driver configuration in go

Email Service Configuration in Go

In this article, we will explore a Go implementation for sending emails using different drivers (AWS SES and SMTP). We will discuss the patterns used, how to use the implementation, and how to test it.

Patterns Used

1. Builder Pattern

The builder pattern is used to create different configurations for sending emails. Depending on the environment configuration, the appropriate email driver (AWS SES or SMTP) is instantiated.