Ruby on Rails Guides: Action Mailer Basicsãèªãã§ã®èªåç¨ã¡ã¢ã§ãã Mailerãä½ã rails generate mailer UserMailer Maileræ¦è¦ defaultã§mailã¡ã½ããã®ããã©ã«ãå¼æ°ãæå®ã§ãã mailã¡ã½ããã§mailãéã controllerã¨åãããã«ãããã§å®ç¾©ããã¤ã³ã¹ã¿ã³ã¹å¤æ°ã¯viewã§ã使ãã class UserMailer < ActionMailer::Base default :from => "[email protected]" def welcome_email(user) @user = user @url = "http://example.com/login" mail(:to => user.email, :subject => "Welcome to
{{#tags}}- {{label}}
{{/tags}}