# Strange behaviour in plain text email

**URL:** <https://www.ruby-forum.com/t/strange-behaviour-in-plain-text-email/113191>\
**Category:** Rails\
**Created:** [August 28, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/strange-behaviour-in-plain-text-email/113191 "2007-08-28T16:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@apie](https://www.ruby-forum.com/u/apie)\
**Post date:** [August 28, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/strange-behaviour-in-plain-text-email/113191/1 "2007-08-28T16:02:24Z")

</div>

Hi.

I have a link to register with a token in a plain text email file.

The link looks like this

[http://someurl/register?token=123456789](http://someurl/register?token=123456789)

However, the link in the email looks like this

[http://someurl/register?token=3D123456789](http://someurl/register?token=3D123456789) - there is an extra 3D in  
there  
for some reason…

The mailer function looks like this:

def invitation(invite,user)  
@subject = “#{user.login} invited you to join”  
link\_string = “[http://someurl.com/register?token=](http://someurl.com/register?token=)” +  
invite.register\_token.to\_s  
body :user =\> user, :invite =\> invite, :reg\_link =\> link\_string  
recipients invite.email  
from Settings.email\_form || “removed\_email\_address@domain.invalid”  
content\_type “text/plain”  
end

The line in the email is just \<%= @reg\_link %\> and the file is called  
invitation.text.plain.rhtml.

Will appreciate any feedback

Regards  
Ivor
