providers

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package providers provides functionality for sending emails using various providers.

Overview

The providers package allows you to send emails using different email providers such as Gmail, SendGrid, AWS SES, and others. It abstracts the provider-specific details and provides a simple API for sending emails.

Usage

To use the package, you need to create an instance of the email sender for your desired provider and then call the SendEmail function.

Example:

package main

import (
    "github.com/darkrockmountain/gomail"
    "github.com/darkrockmountain/gomail/providers/sendgrid"
)

func main() {
    sender := sendgrid.NewSendGridEmailSender("your-api-key")
    err := sender.SendEmail(gomail.NewEmailMessage([]string{"recipient@example.com"},"Subject","Email body"))
    if err != nil {
        log.Fatal(err)
    }
}

This package supports various email providers and can be extended to include more.

Supported Providers

  • Gmail
  • SendGrid
  • AWS SES
  • Mailgun
  • Mandrill
  • Postmark
  • Microsoft365
  • SparkPost
  • SMTP

Directories

Path Synopsis
mandrill_email_sender.go
mandrill_email_sender.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL