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?

4

1 回答 1

0

我希望它与hotmail有关。

如果需要,您可以将电子邮件标记为 html(我相信 email.IsHtml= true)并将其写入 html,它应该适用于所有内容。

于 2013-03-23T08:35:50.750 回答