Miflun.SimpleContactForm 1.0.6-beta

This is a prerelease version of Miflun.SimpleContactForm.
dotnet add package Miflun.SimpleContactForm --version 1.0.6-beta
                    
NuGet\Install-Package Miflun.SimpleContactForm -Version 1.0.6-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Miflun.SimpleContactForm" Version="1.0.6-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Miflun.SimpleContactForm" Version="1.0.6-beta" />
                    
Directory.Packages.props
<PackageReference Include="Miflun.SimpleContactForm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Miflun.SimpleContactForm --version 1.0.6-beta
                    
#r "nuget: Miflun.SimpleContactForm, 1.0.6-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Miflun.SimpleContactForm@1.0.6-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Miflun.SimpleContactForm&version=1.0.6-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Miflun.SimpleContactForm&version=1.0.6-beta&prerelease
                    
Install as a Cake Tool

Simple Contact Form With Macro

A simple contact form with macro package for the Umbraco v13 CMS is intended to be used by developers. It can also be used by other users who has access to Umbraco Settings and are familiar with Html, Css, Javascript.

This package is still under development, further refinements will be carried out after inital feedback.

Summary

Simple Contact Form with Macro provides a way to add a form with 4 fields (name, email, phonenumber and message) using a Macro You can add macro within Rich Text Editor as well.

Download

You can add the package using following .NET CLI Command

dotnet add package Miflun.SimpleContactForm --version 1.0.6-beta (please note that version will be changing as upgrades are done to source code)

OR

<b>Using Package Manager Console in Visual Studio</b> PM> Install-Package Miflun.SimpleContactForm -version 1.0.6-beta

You can also download and install package using Visual Studio Manage Nuget Packages for Solution...

Once the package installation is completed you will find following

  • Macro (ContactFormWrapper)
  • Macro Partial View (~/Views/MacroPartials/ContactFormWrapper.cshtml)
  • Contact Form View (~/Views/Partials/ContactForm/Index.cshtml)

Additionally if you don't have javascript then you will have to include https://code.jquery.com/jquery-3.7.1.min.js, ideally to your layout template

SMTP Settings

<b>Add SMTP settings</b> to your AppSettings.json file so that the emails are sent out, please follow this documentation to add your SMTP https://docs.umbraco.com/umbraco-cms/extending/health-check/guides/smtp

Usage

You could use this form by placing ContactFormWrapper Macro in your content pages. Alternatively you can include them in template/partial views by adding @{ await Html.RenderPartialAsync("~/Views/Partials/ContactForm/Index.cshtml", new SimpleContactForm.Models.ContactFormModel()); }

Source code and example

Source code for this package along with example is available on GitHub repository. We strongly advice you to go through this repository before installing the package https://github.com/miflun/UmbracoContactForm.git

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6-beta 169 4/17/2025
1.0.5-beta 157 4/16/2025
1.0.4-beta 150 4/16/2025
1.0.3-beta 203 4/16/2025
1.0.2-beta 160 4/16/2025
1.0.1-beta 173 4/16/2025
1.0.0-beta 163 4/15/2025