OviCrisan.ContactForm 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package OviCrisan.ContactForm --version 1.0.0
NuGet\Install-Package OviCrisan.ContactForm -Version 1.0.0
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="OviCrisan.ContactForm" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OviCrisan.ContactForm --version 1.0.0
#r "nuget: OviCrisan.ContactForm, 1.0.0"
#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.
// Install OviCrisan.ContactForm as a Cake Addin
#addin nuget:?package=OviCrisan.ContactForm&version=1.0.0

// Install OviCrisan.ContactForm as a Cake Tool
#tool nuget:?package=OviCrisan.ContactForm&version=1.0.0

ContactForm

Contact form processing library which may send emails and/or POST data to webhook or REST API.

Manipulated via appsettings.json or environment variables:

"ContactSettings": {
  "EmailSettings": {
    "MailServer": "smtp.gmail.com",
    "Username": "***@gmail.com",
    "Password": "***",
    "MailSender": "***@gmail.com",
    "MailSenderName": "***",
    "MailReciever": "receiver@email.com",
    "MailPort": 587,
    "MailSecurity": 1,
    "SubjectPrefix": "Contact form notification: ",
    "Enabled": false
  },
  "PostSettings": {
    "PostURL": "https://postman-echo.com/post",
    "EncType": 1,
    "RedirectURL": "https://site.com/?success={0}",
    "RedirectSeconds": 10,
    "RedirectText":  "Click here to continue",
    "Enabled": false
  }
}

Some settings are self-explanatory, but others:

  • Library differentiate between Username and MailSender, the former used to authenticate and the latter to send emails;
  • MailReciver is the email address getting the notification when a new contact form is submitted;
  • MailSecurity - 0 = no SSL/TLS, 1 = SSL / TLS enabled;
  • PostURL - webhook or REST API URL getting the contact data via HTTP POST;
  • EncType - 0 = form encoded, 1 = JSON
  • RedirectURL, RedirectSeconds and RedirectText are used only for EncType = 0 (form posting), and have the URL where redirected after certain number of seconds, showing the link text specified;
  • RedirectSeconds may have -1 for immediate redirect (HTTP status code 302), 0 for no automatic redirect but the user needs to click link to continue, or a positive value to be redirected automatically after that number of seconds;

For environment variable just follow MS rules to replace each level of indentation with double underscore ('__'), like:

"ContactSettings__EmailSettings__Enabled" = true

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.1.5 538 11/5/2019
1.1.4 431 11/5/2019
1.1.3 449 11/5/2019
1.1.2 433 11/3/2019
1.1.1 440 11/3/2019
1.1.0 434 11/2/2019
1.0.1 434 10/31/2019
1.0.0 460 10/30/2019