Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is @Html.MailTo in MVC 4?

I read on many forums suggesting to use @Html.MailTo to send emails using local client (i.e similar to "mailto:" in anchor.

But when I try doing that, I simply dont find "MailTo" option in intellisense... Am I missing something, or if its obsolete now, or if its a customer HtmlHelper?

like image 868
Nirman Avatar asked Jan 07 '13 06:01

Nirman


2 Answers

@Html.Mailto is one of the Features of ASP.NET MVC 3 Futures. ASP.NET MVC 3 Futures includes a bunch of features which may become the part of ASP.NET MVC in future.

Inorder to use it you need to download it from codeplex

You can check all the features in Imran Baloch's Blog Post

Hope it helps.

like image 58
Karthik Chintala Avatar answered Sep 21 '22 03:09

Karthik Chintala


You can use @Html.DisplayFor such as @Html.DisplayFor(modelItem => Model.emailAddress) and it will produce an email link.

like image 42
DeeArgee Avatar answered Sep 19 '22 03:09

DeeArgee