Sevk Ruby SDK
Official Ruby SDK for Sevk email platform.
Installation
gem install sevkSend Email
require 'sevk'
client = Sevk::Client.new('your-api-key')
client.emails.send(
to: 'recipient@example.com',
from: 'hello@yourdomain.com',
subject: 'Hello from Sevk!',
html: '<h1>Welcome!</h1>'
)Send Email with Markup
require 'sevk'
client = Sevk::Client.new('your-api-key')
html = Sevk::Markup.render(<<~MARKUP
<section padding="40px 20px" background-color="#f8f9fa">
<container max-width="600px">
<heading level="1" color="#1a1a1a">Welcome!</heading>
<paragraph color="#666666">Thanks for signing up.</paragraph>
<button href="https://example.com" background-color="#5227FF" color="#ffffff" padding="12px 24px">
Get Started
</button>
</container>
</section>
MARKUP
)
client.emails.send(
to: 'recipient@example.com',
from: 'hello@yourdomain.com',
subject: 'Welcome!',
html: html
)Documentation
For full documentation, visit docs.sevk.io
License
MIT