All Projects → SparkPost → elixir-sparkpost

SparkPost / elixir-sparkpost

Licence: Apache-2.0 License
SparkPost client library for Elixir https://developers.sparkpost.com

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to elixir-sparkpost

Heml
HEML is an open source markup language for building responsive email.
Stars: ✭ 4,264 (+9816.28%)
Mutual labels:  email, sparkpost
alfred-mailto
Send emails to recipients and groups from Alfred
Stars: ✭ 59 (+37.21%)
Mutual labels:  email
mailmask
Mailmask - easy stop unwanted email. Unlimited, free temporary email addresses, all forwarding to your real email address. Beat spam, protect your privacy.
Stars: ✭ 31 (-27.91%)
Mutual labels:  email
strapi-plugin-email-designer
Design your own email templates w/ visual composer directly inside the Strapi admin panel and send composed emails programmatically from your controllers / services.
Stars: ✭ 201 (+367.44%)
Mutual labels:  email
wp-mail-catcher
A fast, lightweight plugin that saves emails sent by your WordPress website.
Stars: ✭ 16 (-62.79%)
Mutual labels:  email
carbon
Email library for Crystal. Testable, adapter-based, and catches bugs for you. Comes with an adapter for SendGrid.
Stars: ✭ 71 (+65.12%)
Mutual labels:  email
mailx
A lightweight SMTP mail library
Stars: ✭ 17 (-60.47%)
Mutual labels:  email
ContextIO-node
[DEPRECATED] - Official Node.js client library for the Context.IO Email API
Stars: ✭ 86 (+100%)
Mutual labels:  email
Networkteam.Neos.MailObfuscator
Email address obfuscation for Neos CMS
Stars: ✭ 13 (-69.77%)
Mutual labels:  email
checkdmarc
A parser for SPF and DMARC DNS records
Stars: ✭ 124 (+188.37%)
Mutual labels:  email
yggmail
End-to-end encrypted email for the mesh networking age
Stars: ✭ 72 (+67.44%)
Mutual labels:  email
go-html-email
Sending HTML email using Go 💌
Stars: ✭ 31 (-27.91%)
Mutual labels:  email
SlmMail
Send mail from Laminas or Mezzio using external mail services.
Stars: ✭ 107 (+148.84%)
Mutual labels:  sparkpost
dispatch
A self-hosted mail forwarding API microservice
Stars: ✭ 24 (-44.19%)
Mutual labels:  email
extract-email-address
Extracts email address from an arbitrary text input.
Stars: ✭ 45 (+4.65%)
Mutual labels:  email
email-framework
A simple, gulp powered framework to develop and test responsive emails.
Stars: ✭ 19 (-55.81%)
Mutual labels:  email
is-email-disposable
A REST API for checking if an e-mail address is disposable (a.k.a. throwaway). https://isemaildisposable.webgazer.io
Stars: ✭ 33 (-23.26%)
Mutual labels:  email
mjml-syntax
Sublime package for the MJML
Stars: ✭ 44 (+2.33%)
Mutual labels:  email
mailtrap
MailTrap has been renamed to Sendria. Please use Sendria now, MailTrap is abandoned. MailTrap is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead of sending to real world.
Stars: ✭ 14 (-67.44%)
Mutual labels:  email
django-contact-form
A Django-powered contact form
Stars: ✭ 15 (-65.12%)
Mutual labels:  email

Sign up for a SparkPost account and visit our Developer Hub for even more content.

SparkPost Elixir Library

Travis CI Coverage Status

The official Elixir package for the SparkPost API.

Capabilities include:

  • convenience functions for easy "I just want to send mail" users
  • advanced functions for unleashing all of Sparkpost's capabilities

Installation

  1. Add sparkpost and ibrowse to your list of dependencies in mix.exs:
def deps do
  [
    {:sparkpost, "~> 0.5.1"}
  ]
end
  1. Ensure sparkpost is started before your application:
def application do
  [applications: [:sparkpost]]
end
  1. Update your dependencies:
$ mix deps.get

Usage

Configuration

In your config/config.exs file:

config :sparkpost, api_key: "YOUR-API-KEY"

Option 1: Convenience

defmodule MyApp.Example do
  def send_message do
    SparkPost.send to: "[email protected]",
         from: "[email protected]",
         subject: "Sending email from Elixir is awesome!",
         text: "Hi there!",
         html: "<p>Hi there!</p>"
  end
end

Option 2: Full SparkPost API

defmodule MyApp.Example do
  alias SparkPost.{Content, Recipient, Transmission}
  
	def send_message do
    Transmission.send(%Transmission{
        recipients: [ "[email protected]" ],
        content: %Content.Inline{
          subject: "Sending email from Elixir is awesome!",
          from: "[email protected]", 
          text: "Hi there!",
          html: "<p>Hi there!</p>"
        }
    })
  end
end

Start your app and send a message:

    $ iex -S mix
    iex> MyApp.Example.send_message
    {:ok, ...}

Contribute

We welcome your contributions! See CONTRIBUTING.md for details on how to help out.

Change Log

See ChangeLog here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].