Why is it that this method produces an empty variable and therefore empty body?
custom_email.text.erb
<%=@message%>
user_mailer.rb
default from: "Name <name@domain.com>"
def custom_email(email, subject, message)
mail to: email, subject: "Name || #{subject}"
@message = message
end
While this method works:
mail to: email, subject: "Name || #{subject}", body: message