Sha256: 54a7f69260b1115c3beb7e883d6b1ace173c73514b3396b75191ec8dff63d655

Contents?: true

Size: 1.31 KB

Versions: 17

Compression:

Stored size: 1.31 KB

Contents

##
# Mailer methods can be defined using the simple format:
#
# email :registration_email do |name, user|
#   from 'admin@site.com'
#   to   user.email
#   subject 'Welcome to the site!'
#   locals  :name => name
#   content_type 'text/html'       # optional, defaults to plain/text
#   via     :sendmail              # optional, to smtp if defined, otherwise sendmail
#   render  'registration_email'
# end
#
# You can set the default delivery settings from your app through:
#
#   set :delivery_method, :smtp => {
#     :address         => 'smtp.yourserver.com',
#     :port            => '25',
#     :user_name       => 'user',
#     :password        => 'pass',
#     :authentication  => :plain, # :plain, :login, :cram_md5, no auth by default
#     :domain          => "localhost.localdomain" # the HELO domain provided by the client to the server
#   }
#
# or sendmail (default):
#
#   set :delivery_method, :sendmail
#
# or for tests:
#
#   set :delivery_method, :test
#
# and then all delivered mail will use these settings unless otherwise specified.
#

<%= @app_name %>.mailer :<%= @short_name %> do
  <%- if @actions.nil? || @actions.empty? -%>
  # Message definitions here...
  <%- else -%>
    <%- @actions.each do |action| -%>

  email <%=action.inspect%> do
    # Your mailer goes here
  end

    <%- end -%>
  <%- end -%>
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.10.0 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.29 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.28 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.27 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.26 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.24 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.25 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.23 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.22 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.21 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.20 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.19 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.18 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.17 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.16 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.9.15 lib/padrino-gen/generators/templates/mailer.rb.tt