Rails HTML/TEXT UserMailer Templates -
currently rails 3 mailer templates, need create html , text version in views/user_mailer directory.
why necessary? why can't rails @ html version , automatically format text/plain version?
this not required. can provide 1 of templates. instance, if don't need html, can create text file only.
likewise, can provide html template only. readers attempts extract information. however, if use html, should provide alternative text version make sure readers won't mess content of email.
by way, rails doesn't force provide both templates.
Comments
Post a Comment