Popularity
4.1
Declining
Activity
0.0
Stable
14
3
1
Programming language: Crystal
License: MIT License
Tags:
Email
sendgrid.cr alternatives and similar shards
Based on the "Email" category.
Alternatively, view sendgrid.cr alternatives based on common mentions on social networks and blogs.
-
carbon
Email library for Crystal. Testable, adapter-based, and catches bugs for you. Comes with an adapter for SendGrid. -
devmail
An SMTP/POP3-server that keeps every email you send it until you fetch it -
Mailer
Simple Email Sending Client for Mailgun & Sendgrid services in crystal
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of sendgrid.cr or a related project?
Popular Comparisons
README
sendgrid.cr
Simple lib to send mail using Sendgrid in Crystal-Lang
Installation
Add this to your application's shard.yml
:
dependencies:
sendgrid:
github: dlanileonardo/sendgrid.cr
Usage
require "sendgrid"
Using Helpers
client = Sendgrid::Client.new("https://api.sendgrid.com/v3/mail/send", API_KEY)
message = Sendgrid::Message.new
message.from = Sendgrid::Address.new(email="[email protected]", name="Darth Vader")
message.to << Sendgrid::Address.new(email="[email protected]", name="Luke Skywalker")
message.subject = "Good News"
message.content = Sendgrid::Content.new("No, I am your father.")
send = client.send message
puts send.status_code
puts send.body
Print JSON
message = Sendgrid::Message.new
message.from = Sendgrid::Address.new(email="[email protected]", name="Darth Vader")
message.reply_to = Sendgrid::Address.new(email="[email protected]", name="Anakin Skywalker")
message.to << Sendgrid::Address.new(email="[email protected]", name="Luke Skywalker")
message.subject = "Good News"
message.content = Sendgrid::Content.new("No, I am your father.")
extra_fields = {
"template_id" => "death_star",
"asm" => {
"group_id" => "skywalkers",
"groups_to_display" => "skywalkers"
} of String => Sendgrid::ExtraFieldsType,
"attachments" => [
{
"content" => "Blue LightSaber",
"filename" => "blulightsaber.png"
} of String => Sendgrid::ExtraFieldsType
] of Sendgrid::ExtraFieldsType
} of String => Sendgrid::ExtraFieldsType
message.extra_fields.merge!(extra_fields)
puts message.to_json
Contributing
- Fork it ( https://github.com/dlanileonardo/sendgrid.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- dlanileonardo - creator, maintainer