Instantiate a new mailer object. If method_name is not nil, the mailer will be initialized according to the named method. If not, the mailer will remain uninitialized (useful when you only need to invoke the "receive" method, for instance).
Source Code
# File action_mailer/base.rb, line 402 def initialize(method_name=nil, *parameters) #:nodoc: create!(method_name, *parameters) if method_name end
<code/>and<pre/>for code samples.