ProductivityTools.SendEmailGmail 0.0.13

dotnet add package ProductivityTools.SendEmailGmail --version 0.0.13                
NuGet\Install-Package ProductivityTools.SendEmailGmail -Version 0.0.13                
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="ProductivityTools.SendEmailGmail" Version="0.0.13" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProductivityTools.SendEmailGmail --version 0.0.13                
#r "nuget: ProductivityTools.SendEmailGmail, 0.0.13"                
#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 ProductivityTools.SendEmailGmail as a Cake Addin
#addin nuget:?package=ProductivityTools.SendEmailGmail&version=0.0.13

// Install ProductivityTools.SendEmailGmail as a Cake Tool
#tool nuget:?package=ProductivityTools.SendEmailGmail&version=0.0.13                

<p align="right"> <a href="https://www.powershellgallery.com/packages/ProductivityTools.PSSetLockScreen/"><img src="Images/Header/Nuget_border_40px.png" /></a> <a href="http://www.productivitytools.tech/sql-commands/"><img src="Images/Header/ProductivityTools_green_40px_2.png" /><a> <a href="https://www.github.com/pwujczyk/ProductivityTools.PSSetLockScreen"><img src="Images/Header/Github_border_40px.png" /></a> </p> <p align="center"> <a href="http://productivitytools.tech/"> <img src="Images/Header/LogoTitle_green_500px.png" /> </a> </p>

Send-EmailGmail

Nuget simplify sending email through gmail account.

	IConfigurationRoot configuration = new ConfigurationBuilder()
	.AddMasterConfiguration()
	.Build();
    
	string password = configuration["GmailPassword"];
    SentEmailGmail.Gmail.Send("productivitytools.tech@gmail.com", configuration["GmailPassword"], "pwujczyk@hotmail.com", "Subject", body);

As Google does not allow anymore less secure apps as a password you should pass App Password

Here is tutorial how to create App Password

alternate text is missing from this package README imagealternate text is missing from this package README image

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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
0.0.13 239 10/2/2022
0.0.12 188 10/2/2022

gmail mail send