title: How to add custom code in mailers ? adding ruby code in @message variable
body: <p>I have this code /app/mailers/email_mailer.rb</p>
  
  <pre><code>@message = message.content
  </code></pre>
  
  <p>and I want to add some ruby string to it at the end of the message like  </p>
  
  <pre><code>@message = message.content + &lt;%= link_to 'Home Page!', root_url %&gt;
  </code></pre>
  
  <p>so the urls gets shown below the email message but I am getting syntax error, I am sure I am missing something very small, any help ? </p>
  
  <p>EDIT - I tried this code too which is not throwing error by the Home Page link is not adding to the @message </p>
  
  <pre><code>@message = message.content.to_s + '&lt;%= link_to "Home Page!", root_url %&gt;'
  </code></pre>