providers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Providers

The providers package allows you to send emails using different email providers such as Resend, gmail, whatever. It abstracts the provider-specific details and provides a simple interface for sending emails.

Usage

To use the package, you need to create an instance of the email sender and then call the sendemail func, ex:


package main

import (
    "github.com/theopenlane/newman"
    "github.com/theopenlane/newman/providers/resend"
)

func main() {
    client := resend.New(token, opts...)

    err := client.SendEmail(newman.NewEmailMessage([]string{"info@theopenlane.io"},"Hey openlane please have my money","We got hotdogs for sale"))
    if err != nil {
        log.Fatal(err)
    }
}

Documentation

Overview

Package providers are the vendor specific email senders

Directories

Path Synopsis
Package gmail is used for sending emails via gmail
Package gmail is used for sending emails via gmail
Package mailgun is used for sending emails via mailgun
Package mailgun is used for sending emails via mailgun
Package mock is for mocking the sending of emails, for testing and such
Package mock is for mocking the sending of emails, for testing and such
Package postmark is used for sending emails via postmark
Package postmark is used for sending emails via postmark
Package resend is for sending emails via the resend api
Package resend is for sending emails via the resend api
Package sendgrid is used for sending emails via sendgrid
Package sendgrid is used for sending emails via sendgrid
Package smtp is used for sending emails via smtp
Package smtp is used for sending emails via smtp

Jump to

Keyboard shortcuts

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