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
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}