0

I have this in my Account Controller Register:

var token = WebSecurity.CreateUserAndAccount(
                model.UserName,
                model.Password,
                    new
                    {
                        model.Email
                    },
                true);

var confirmationUrl = System.Web.HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) +
        "/Account/ConfirmAccount/" + token;

dynamic email = new Email("RegisterConfirmation");
email.To = model.Email;
email.UserName = model.UserName;
email.ConfirmationUrl = confirmationUrl;
email.Send();

Usually i expect that to send out a link to emails and its doing so when sent to a GMail and Yahoo account, but when sent to aHotmail account the link is sent as a plain string which would require copy and past to navigate there.

Any ideas on what's causing this?

madd0
  • 9,053
  • 3
  • 35
  • 62
Komengem
  • 3,662
  • 7
  • 33
  • 57

1 Answers1

0

I would expect its something to do with hotmail.

If you want, you can instead flag the email as html (email.IsHtml= true I believe) and write it in html, which should work with everything.

Haedrian
  • 4,240
  • 2
  • 32
  • 53