Sha256: 3ed0beddfba2afcc05295c4d3d7b25fffc652cc5dc3c5a53b22de2277404fb91

Contents?: true

Size: 1.46 KB

Versions: 45

Compression:

Stored size: 1.46 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
#
# or storing emails locally:
#
#   set :delivery_method, :file => {
#     :location => "#{Padrino.root}/tmp/emails",
#   }
#
# and then all delivered mail will use these settings unless otherwise specified.
#

<%= @project_name %>::<%= @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

45 entries across 45 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.15.3 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.15.2 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.15.1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.15.0 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.4 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.3 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.12.9 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.2 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.13.3.4 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.1.1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.0.2 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.0.1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.0 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.13.3.3 lib/padrino-gen/generators/templates/mailer.rb.tt
padrino-gen-0.13.3.2 lib/padrino-gen/generators/templates/mailer.rb.tt