carbon_smtp_adapter

Version, currently 0.5.05 versions

github.com/luckyframework/carbon_smtp_adapter

An smtp adapter for the carbon email library

10 stars
4 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  carbon_smtp_adapter:
    github: luckyframework/carbon_smtp_adapter
    version: ~> 0.5.0

Then run:

shards install

shard.yml

Crystal
>= 1.4.0
License
MIT
Author
David Roetzel

Dependencies

Runtime Dependencies

  • email>= 0.7.0, < 0.8github: arcage/crystal-email
  • carbon>= 0.5.0github: luckyframework/carbon

Development Dependencies

  • ameba~> 1.5.0github: crystal-ameba/amebadev
  • devmail*github: tijn/devmaildev

README

carbon_smtp_adapter

A simple SMTP-Adapter for carbon.

Versioning

The current plan is to track carbon's major and minor numbers, so that carbon_smtp_adapter 0.1.x is compatible with carbon 0.1.x and so on.

Installation

Add this to your application's shard.yml:

dependencies:
  carbon_smtp_adapter:
    github: luckyframework/carbon_smtp_adapter

Usage

require "carbon_smtp_adapter"

# configure your base email class to use the smtp adapter:
BaseEmail.configure do |setting|
  settings.adapter = Carbon::SmtpAdapter.new
end

By default, carbon will try to deliver the email to an smtp server running on localhost and listening on port 25. If you need different settings, you can configure the following (values shown are the defaults):

Carbon::SmtpAdapter.configure do |settings|
  settings.host = "localhost"
  settings.port = 25
  settings.helo_domain = nil
  settings.use_tls = true
  settings.username = nil
  settings.password = nil
end

Contributing

  1. Fork it (https://github.com/luckyframework/carbon_smtp_adapter/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

With many thanks to:

  • paulcsmith Paul Smith - creator of carbon
  • arcage arcage - creator of crystal-email
  • tijn Tijn Schuurmans - creator of devmail