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

mimecast_mailer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mimecast_mailer

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Mimecast Mailer

Send mails using Mimecast API (https://integrations.mimecast.com/documentation/endpoint-reference/email/).

Rails Setup

First add the gem to your environment and run the bundle command to install it.

gem "mimecast_mailer"

Option 1

Set the delivery method in config/environments/development.rb

config.action_mailer.delivery_method = :mimecast_mailer
config.action_mailer.perform_deliveries = true

Option 2

Create new mailer in your mailing directory (app/mailers/api_mailer.rb)

class ApiMailer < ApplicationMailer
  self.delivery_method = :mimecast_mailer #if ::Configuration.production?
end

Inherit your mails from ApiMailer instead of ApplicationMailer

Configuration

MimecastMailer.configure do |config|
  config.secret_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=="
  config.access_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  config.app_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  config.app_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

  # Optional parameter. If it is skipped then gem send additional api request to determine 
  # correct host name (https://api.mimecast.com/api/discover-authentication)
  config.api_path = "https://us-api.mimecast.com"
end

Development & Feedback

Questions or problems? Please use the issue tracker. If you would like to contribute to this project then pull requests appreciated.

FAQs

Package last updated on 06 Jun 2022

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