new(method_name=nil, *args)
public
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).
Show source
def initialize(method_name=nil, *args)
super()
@_message = Mail.new
process(method_name, *args) if method_name
end