
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
action_mailer_test_via_smtp
Advanced tools
= action_mailer_test_via_smtp
If you want to test your e-mails not just in your log, this library is for you. It allows you to configure a test-recipient which gets all mails send via SMTP. Best for testing or staging evironments.
At the moment, this library is only tested with Rails 2.3.8
== Usage
Load the gem
config.gem "action_mailer_test_via_smtp"
and in you staging.rb (environment file) you can configure this mode
require "action_mailer_test_via_smtp" config.action_mailer.delivery_method = :test_via_smtp config.action_mailer.test_recipient = "andi@galaxycats.com"
now every single mail will be sent to the test_recipient, prefixed with the original recipient.
Since 0.2.0 you can also test 'sendmail' and even 'test':
config.action_mailer.delivery_method = :test_via_sendmail
or
config.action_mailer.delivery_method = :test_via_test
I know, the gem name is not valid anymore.
== Custom Mail-Header
You can change the standard test mail header by writing your own renderer. Just set
config.test_mail_header_renderer = CustomMailHeaderRenderer
Your class should look something like this
class CustomMailHeaderRenderer < ActionMailerTestViaSmtp::HeaderRenderer::Base def test_mail_header # you can access 'mail' which is a TMail::Mail "return a prepared string" end
def test_mail_header_html
# you can access 'mail' which is a TMail::Mail
"return a prepared string"
end
end
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 Galaxy Cats IT Consulting GmbH. See LICENSE for details.
FAQs
Unknown package
We found that action_mailer_test_via_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.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.