ruby-on-railsemailplaintext

How to get a line break in a plain text email RoR?


I'm sending a plain text email and was wondering how I add a line break to this. It's showing up on on the same line.

From: <%= @name %>
<%= @text %>

Thanks


Solution

  • \r\n
    

    or if you're sending html email:

    <br />
    

    so:

    From: <%= @name %> \r\n <%= @text %>
    From: <%= @name %> <br /> <%= @text %>