Easy Way to Add Umbraco Contact Form

Umbraco is a great CMS, it simple, easily extendible and most important it is free. To make it more professional, you must add a contact form in your Umbraco site.
So below is a very simple template for you to use if you are looking for just that, its a usercontrol with a few styles and a couple of macro parameters.

ASCX

CodeBehind

Styles

That’s it… Just add the macro parameters to your macro like below so it will work properly, add the email address you want the form to be sent to and also the thank you page to redirect the user to on successful sending.
NOTE: Don’t forget, to use the umbraco.library.SendMail() you must have some SMTP settings in your web.config or it won’t send.
Hopefully you’ll end up with the below