Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markbates-blabber_mouth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markbates-blabber_mouth

  • 0.1.0.20090714164111
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

This gem provides a simple API for creating emails within a Mack application.

A simple BlabberMouth model would look like this:

class WelcomeEmail include BlabberMouth end

To use this in your application you would do something like the following:

mail = WelcomeEmail.new mail.to = "foo@example.com" mail.from = "me@example.com" mail.subject = "Hello" mail.body(:plain, "This is my plain text body") mail.body(:html, "This is my HTML body") mail.attach(BlabberMouth::Attachment.new("/path/to/my/image_file.png")) mail.attach(BlabberMouth::Attachment.new("/path/to/my/pdf_file.pdf")) mail.deliver

This gem currently has an adapter for TMail, but it can support any mailing framework under the covers with the creation of a simple adapter class.

Currently implemented delivery handlers are: SMTP (default), sendmail, and test.

== Testing

When testing you can get access to delivered emails with the delivered_notifiers method. After each tests these emails will be flushed our of the test handler.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc