我有几封电子邮件的 erb 和纯文本版本。当我发送它们时,有些显示纯文本版本,有些则不显示。我的一些纯文本电子邮件中似乎存在错误,但其他电子邮件中没有。
这是正确发送的纯文本电子邮件 (app/views/user_mailer/send_first_welcome_everyone_email.text.erb):
Hi there,
Thanks for joining the TakeLessons community!
We hope you enjoy using TakeLessons to advance your foundational music skills.
5 - 10 minutes of practice every day will help you take your music skills to the next level.
Have a great day!
The TakeLessons Team
<%= render partial: 'vanilla_footer_text' %>
这是未正确发送的纯文本电子邮件 (app/views/user_mailer/send_individual_day_reminder_email.text.erb):
Hi there,
As requested, we are sending you this reminder to keep making progress on the educational games on TakeLessons.com.
Enjoy your music!
The TakeLessons Team
<%= render partial: 'vanilla_footer_text' %>
有什么东西可以告诉 Rails 只发送 html 电子邮件而不是我需要删除的纯文本吗?
它们每个的html版本是:app/views/user_mailer/send_first_welcome_everyone_email.html.erb app/views/user_mailer/send_individual_day_reminder_email.html.erb