Thanks it worked.

regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>


On Mon, May 18, 2015 at 7:20 PM, John O'Gara <johnog...@gmail.com> wrote:

> Try
>
> <%= CGI.escapeHTML(dummy_password) %>
>
> When that works stop what you're doing and implement a password link
> reset/setup that will allow you to securely reset your users passwords
>
> John
>
> On Saturday, 16 May 2015 20:11:17 UTC+1, Loganathan Sellappa wrote:
>>
>> HI Walter,
>>
>> I have tried all the possible options such h, raw and nothing works on
>> mailer view.
>>
>> regards,
>> Loganathan
>> Mob: +91 7760780741 | +91 9944414388
>> Skype: loganathan.sellappa
>> ViewMe <http://vizualize.me/loganathan>
>>
>>
>> On Sun, May 17, 2015 at 12:30 AM, Walter Lee Davis <wa...@wdstudio.com>
>> wrote:
>>
>>> Okay, then try the <%=h dummy_password %> here instead. I thought that
>>> it was default in all contexts, but perhaps inside a mailer template it is
>>> not?
>>>
>>> Walter
>>>
>>> On May 16, 2015, at 2:45 PM, Loganathan Sellapa <logana...@gmail.com>
>>> wrote:
>>>
>>> > Hi Walter,
>>> >
>>> > Just wanted to let you know
>>> >
>>> > ​,​ I​ ​have tried without html_safe already it didnt ​encode the "<"
>>> in to "&lt".​ Regarding the second point,  ​I need to send the plain
>>> password since this token password which needs to be used only once by the
>>> customer.
>>> >
>>> > Regards,
>>> > Logan
>>> >
>>> > Sent from Mobile device.
>>> >
>>> > On 16 May 2015 23:29, "Walter Lee Davis" <wa...@wdstudio.com> wrote:
>>> >
>>> > On May 16, 2015, at 1:15 PM, Loganathan Sellapa <logana...@gmail.com>
>>> wrote:
>>> >
>>> > > Hi All,
>>> > >
>>> > > I have to send user profile password via email, where password will
>>> have special characters as below
>>> > >
>>> > > >>"><<<<<!@#$%^&*()_-+=|{}[]/.,`
>>> > >
>>> > > Whenever I send email, some of the special characters are not being
>>> displayed, I have used the html_safe, also set the meta tag as below, but
>>> special characters are always being removed in the mails, can anybody let
>>> me know the way to display special characters in mailer views?
>>> > >
>>> > >   <meta content='text/html charset=UTF-8' http-equiv='Content-Type'>
>>> > >
>>> > > Actual password: >>><<<<<!@#$%^&*()_-+=|{}[]/.,`
>>> > > Password in mail: >>><<<`
>>> >
>>> > Two things: first, html_safe means "this character doesn't need to be
>>> escaped" when actually, you mean the opposite. The character is probably
>>> there, but the fact that you have used angle brackets (but not escaped them
>>> to &lt and &gt) means that it's being interpreted as the beginning of a tag
>>> and ignored. Try using nothing at all to escape it, which will mean that
>>> Rails does its usual thing and converts any character that has special
>>> meaning in HTML into an entity. It will appear in the browser/email client
>>> as the correct character.
>>> >
>>> > Second thing: why on earth are you sending a password in clear text in
>>> an e-mail, unless that's also inside a PGP block? You may as well write it
>>> on a postcard (or hire a sky-writer).
>>> >
>>> > Walter
>>> >
>>> > >
>>> > > regards,
>>> > > Loganathan
>>> > > Mob: +91 7760780741 | +91 9944414388
>>> > > Skype: loganathan.sellappa
>>> > > ViewMe
>>> > >
>>> > >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> > > To unsubscribe from this group and stop receiving emails from it,
>>> send an email to rubyonrails-ta...@googlegroups.com.
>>> > > To post to this group, send email to rubyonra...@googlegroups.com.
>>> > > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MHghC%3DSi%3DXrJkrdqMGsaFL3ttPABgN-%2B4Ej_%2BjkGrWD7A%40mail.gmail.com
>>> .
>>> > > For more options, visit https://groups.google.com/d/optout.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-ta...@googlegroups.com.
>>> > To post to this group, send email to rubyonra...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/363D3D58-4621-4634-B61C-D0B2329D0272%40wdstudio.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-ta...@googlegroups.com.
>>> > To post to this group, send email to rubyonra...@googlegroups.com.
>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEYCfxEAh-71Jnei__E7s_jAQa0ADA%3DVP_MbMYRFB3MmA%40mail.gmail.com
>>> .
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ruby on Rails: Talk" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to rubyonrails-ta...@googlegroups.com.
>>> To post to this group, send email to rubyonra...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/rubyonrails-talk/330F06D5-9C0A-402B-9E4E-35AC3F020667%40wdstudio.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/e420fec6-40f9-41ef-a658-14936b082403%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/e420fec6-40f9-41ef-a658-14936b082403%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_i5MEP3HQZALfCQA8uTZvRp4wt68L8X3e7u5Ur84-cfE6x%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to