halo
Halo
Halo is a simple SMTP adapter for Carbon mailer.
Installation
-
Add the dependencies to your
shard.yml
:dependencies: halo: github: GrottoPress/halo carbon: github: luckyframework/carbon version: ~> 0.5.0
-
Run
shards install
Usage
Set an instance of Halo::Adapter
as Carbon's adapter:
require "carbon"
require "halo"
abstract class BaseEmail < Carbon::Email
end
BaseEmail.configure do |settings|
settings.adapter = Halo::Adapter.new(
host: "smtp.domain.tld",
port: 587,
username: "user@domain.tld",
password: "a1b2c3",
domain: "domain.tld" # HELO domain
)
end
That's it! Send emails as usual. Check out Carbon's documentation for details.
Development
Run tests with crystal spec -p
.
Contributing
- Fork it
- Switch to the
master
branch:git checkout master
- Create your feature branch:
git checkout -b my-new-feature
- Make your changes, updating changelog and documentation as appropriate.
- Commit your changes:
git commit
- Push to the branch:
git push origin my-new-feature
- Submit a new Pull Request against the
GrottoPress:master
branch.
Repository
halo
Owner
Statistic
- 1
- 0
- 0
- 1
- 4
- 10 months ago
- March 16, 2023
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 01:34:53 GMT
Languages