APIdock / Ruby on Rails
/
Browse About
method

mailer_name

v6.1.7.7 - Show latest stable - Class: ActionMailer::Base
mailer_name()
public

Returns the name of the current mailer. This method is also being used as a path for a view lookup. If this is an anonymous mailer, this method will return anonymous instead.

# File actionmailer/lib/action_mailer/base.rb, line 529
      def mailer_name
        @mailer_name ||= anonymous? ? "anonymous" : name.underscore
      end

Related methods

  • Instance methods
  • attachments
  • email_address_with_name
  • headers
  • mail
  • mailer_name
  • process
  • Class methods
  • controller_path
  • default
  • default_options=
  • deliver_mail
  • email_address_with_name
  • mailer_name
  • new
  • register_interceptor
  • register_interceptors
  • register_observer
  • register_observers
  • unregister_interceptor
  • unregister_interceptors
  • unregister_observer
  • unregister_observers
  • Private methods
  • privatemethod_missing
  • privateobserver_class_for
  • privaterespond_to_missing?
  • privateset_payload_for_mail
  • privatesupports_path?
  • private_protected_ivars
  • privateapply_defaults
  • privateassign_headers_to_message
  • privatecollect_responses
  • privatecollect_responses_from_block
  • privatecollect_responses_from_templates
  • privatecollect_responses_from_text
  • privatecompute_default
  • privatecreate_parts_from_responses
  • privatedefault_i18n_subject
  • privateeach_template
  • privateinsert_part
  • privateinstrument_name
  • privateinstrument_payload
  • privateset_content_type
  • privatewrap_inline_attachments
APIdock API Documentation Browser

© 2026 APIdock