A minimal example showing how to use the Inky email framework from Ruby via the Fiddle bindings.
Requires Inky v2. See installation instructions.
- Ruby >= 2.7
- The
libinkyshared library (build from source:cargo build -p inky-ffi --release)
bundle install
ruby build.rbsrc/emails/welcome.inky Source template
data/welcome.json Sample merge data
dist/ Built output (generated)
build.rb Build script
send.rb Email sending example
ruby build.rb transforms the Inky template, generates a merged version with sample data, and creates a plain text version.
Edit send.rb with your SMTP credentials, then:
ruby send.rbThe example uses the mail gem. Install it with gem install mail.