Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This gem allows you to do the mail delivery inside a Resque job.
What's the difference with other gems that send the email in Resque jobs?
The other gems aim to render and deliver the mail inside the job. Resque::SMTP only handles the deliver, this allows you to have workers that don't have all your dependencies (eg. Rails mailers), but can be retried if your mail provider fails.
Add this line to your application's Gemfile:
gem 'resque-smtp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install resque-smtp
Configure wich mails you want to use resque-smtp.
This can be done to all your emails with in your application.rb
(or in a per environment basis)
config.action_mailer.delivery_method = :resque_smtp
The default Resque queue name is: mailing
, this can be changed with:
config.action_mailer.resque_smtp_settings = { queue: "default" }
Done!
resque-smtp will use the action_mailer.smtp_settings
to send the mails in the queue.
Configure your smtp settings in Resque::SMTP.smtp_settings
eg.
Resque::SMTP.smtp_settings = { :address => "smtp.me.com",
:port => 587,
:domain => 'your.host.name',
:user_name => '<username>',
:password => '<password>',
:authentication => 'plain',
:enable_starttls_auto => true }
Configure Mail defaults to use Resque::SMTP (the queue parameter is optional, it defaults
to "mailing"
)
eg.
Mail.defaults do
delivery_method Resque::SMTP::DeliveryMethod, queue: "default"
end
Done!
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that resque-smtp 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.