The '>' characters at the end of emails were caused by Rails development mode adding HTML comment annotations to rendered views, including email templates. This creates comments like '<!-- END app/views/...erb -->' which can appear as stray characters in email clients. Solution: - Add initializer to disable view annotations specifically for ActionMailer - Preserves debugging annotations for regular views - Ensures clean email formatting in development mode - No impact on production where annotations are disabled by default The emails will now render cleanly without extra HTML comments or stray characters at the end.
846 B
846 B