27 comments found.
Hello,
How can I fix the email address the form is received. Now the form is going to email which is filled in the email field.
Thank you
Could you be more specific please
Awesome ! GLWS 
When opening the solution in VS 2015, I’m getting an error that the project cannot load, and to check the output window. The output window is showing the following error “Error opening web http://localhost:51106. Unable to open the Web site ‘http://localhost:51106'. The Web server ‘http://localhost:51106' could not be found.”
In Visual Studio 2015 go to File-Open Web Site, point it to the directory where your website is located. Once the project is opened, click F5 and see if it works.
Opening as a Web Site solved the issue
I’m quiet a beginner at this. Unfortunately the help docs provide no real help. Can this form be placed within my regular bootstrap page (ie contact.html)? If so what code do I put there? Is there anything else that I need to be aware of?
Thank you
You need to follow these 3 simple steps
Step 1:
Configure your SMTP settings in your web.config file located in the root directory of your web application.
< smtp deliveryMethod="Network" from="info@domain.com">
< network defaultCredentials="false"
host="domain.com"
userName="info@domain.com"
password="yourpassword"
port="25"/>
< /smtp>
info@domain.com will be the email of your websitedomain.com will be your domain
Step 2:
From Default.aspx file- Copy the HTML script from BEGIN Container to END Container. You can add or remove text as per your needs.
- Copy the HTML script from BEGIN JavaScript to END JavaScript. Don’t customize anything here in this area.
Step 3
From Default.aspx.cs file- Add the following namespaces
- using System.IO;
- using System.Net.Mail;
- using System.Web.UI;
- Copy the C# script from #region Send Email to #endregion
Does this send an email to me (the administrator of the form/website) or to the person filling out the form?
When any user tries to contact, an email will be sent to the user and admin as well.
GLWS!
Thanks