I have feedback form on my mvc site, it looks like
and I need to send my
I have copy-pasted your code and got it to work, with some small modifications:
Credentials
propertyI modified the template to remove the @Value attribute:
@Html.TextBoxFor(model => model.Name) @Html.TextBoxFor(model => model.Email) @Html.TextBoxFor(model => model.Phone)
These are the only changes I made and I got your application to work. This leads me to believe that there must be something wrong in your SMTP client's configuration. Can you examine the exception that is thrown by client.Send(msg);
? I expect it will say something about invalid network credentials or something like that.