You can Use Postal which is very handy and easy to use ,to send emails
Controller
dynamic email = new Email("Email");
email.To = UserName;
email.FirstName = FName;
email.LastName = LName;
email.Send();
Then in your View Email
@{
Layout = null;
}
To: @ViewBag.To
From: Example [email protected]
Subject: blah blah
Hello @ViewBag.FirstName,
Your Text.........
This is auto generated email please do not reply.
Edited
Please add your smtp credentials in web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="[email protected]">
<network defaultCredentials="false" host="smtp.gmail.com" port="587" enableSsl="true" userName="[email protected]" password="1234567" />
</smtp>
</mailSettings>
</system.net>
This is very simple. Just give a try
Hope this helps!