
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Tool for sending fast mailings in one SMTP connection.
Add this line to your application's Gemfile:
gem 'mailing'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mailing
Default sending speed is low and set to ~ 120 mails per minute. You can change that value by setting the delay parameter in sender.
require 'mailing'
require 'logger'
# create channel
config = {
:address => 'localhost',
:port => 25,
:domain => 'localhost.localdomain'
}
channel = Mailing::SmtpChannel.new(config)
# create sender with channel, envelope_from and logger
logger = Logger.new('/tmp/mailing.log')
sender = Mailing::Sender.new(channel, 'sender@domain.com', logger)
sender.delay = 0.1 # ~ 600 mails per minute
# create mailing with from, subject, body, recipients
mailing = Mailing::Mailing.new('from@domain.com', 'Subject', 'Body')
mailing.recipients = %w(john@domain.com paul@domain.com peter@domain.com)
# send mailing
mailing.send(sender)
require 'mailing'
require 'logger'
mailing = Mailing::Mailing.new('from@domain.com', 'Subject', 'Body')
mailing.recipients = %w(john@domain.com paul@domain.com peter@domain.com)
config = {
:address => 'localhost',
:port => 25,
:domain => 'localhost.localdomain'
}
# send with config and envelope_from set to sender@domain.com
# without logging and with 0.2 delay (~ 300 mails per minute)
mailing.send_by_smtp(config, 'sender@domain.com', nil, 0.2)
mailing = Mailing::Mailing.new('from@domain.com', 'Subject', 'Body')
mailing.recipients = User.pluck(:email)
mailing.send_by_smtp(ActionMailer::Base.smtp_settings,
'sender@domain.com', Rails.logger)
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mailing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.