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?