How to format text in the mailer?


#1

Suppose
site_name = “Company XYZ”
I would like to Underline the site name in the emails subject line as
in:
site_name = “Company XYZ”
----------

What is the easiest way for doing this?
Thanks.
Bharat


#2

On Oct 4, 7:11 pm, Bharat R. removed_email_address@domain.invalid
wrote:

Suppose
site_name = “Company XYZ”
I would like to Underline the site name in the emails subject line as
in:
site_name = “Company XYZ”

As far as I know you can’t. Subject lines are plain text.

Fred


#3

Thanks Fred. I will not waste time trying to format the subject line.

This may be a dumb question. But, I will ask anyway.

Suppose that I want the site_name text underlined in the body of email
rather than subject line as I originally asked above. I can always do
that using HTML, but will that not make my email hard to read for
someone using an email client that does not support HTML
formatting/conversion? Is there some unicode standard way of formatting
email that is universally readable?

I read somewhere on the web that Rails 2.2 will have some of the email
formatting features. Would you (or anyone else) know anything about it?
Bharat


#4

Thank you.


#5

On 4 Oct 2008, at 23:17, Bharat R. wrote:

formatting
email that is universally readable?

You can indeed do HTML emails, but many people don’t like those. You
can however have multipart emails: a plain text part and an html part.
People with mail viewers that can understand html will see the html
stuff, others (or those who have set appropriate settings in their
email client) will see the plain text version. (see
http://api.rubyonrails.com/classes/ActionMailer/Base.html)

Fred