Tapis.Core.Email 1.0.2

dotnet add package Tapis.Core.Email --version 1.0.2
                    
NuGet\Install-Package Tapis.Core.Email -Version 1.0.2
                    
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="Tapis.Core.Email" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tapis.Core.Email" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Tapis.Core.Email" />
                    
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 Tapis.Core.Email --version 1.0.2
                    
#r "nuget: Tapis.Core.Email, 1.0.2"
                    
#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 Tapis.Core.Email@1.0.2
                    
#: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=Tapis.Core.Email&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Tapis.Core.Email&version=1.0.2
                    
Install as a Cake Tool

Tapis.Core.Email

MailKit tabanlı SMTP gönderici (SmtpEmailSender) ve AddSmtpEmailSender DI kaydı.

Modeller (EmailMessage, SmtpOptions) ve IEmailSender Tapis.Core.Shared içindedir.

Target Framework

  • .NET 10

Installation

dotnet add package Tapis.Core.Email

SMTP hedef denetimi (1.0.2)

SmtpHedefDenetimi tenant'ın girdiği SMTP hedefini SSRF'e karşı denetler:

  • Port yalnız 25, 465, 587 veya 2525 olabilir (her zaman).
  • Host bir kez çözülür (Dns.GetHostAddressesAsync); çözülen adreslerden biri bile 10/8, 172.16/12, 192.168/16, 127/8, 169.254/16, 0.0.0.0/8, 100.64/10, ::1, ::, fc00::/7, fe80::/10 ya da bunların IPv4-mapped IPv6 biçimindeyse SmtpHedefReddedildiException fırlatılır. IP biçiminde yazılan host da aynı denetimden geçer.
  • Platform bayrağı Smtp:AllowPrivateHosts (tenant ayarı değil) true ise yalnız adres denetimi atlanır; port kısıtı kalır.
  • BaglanAsync denetlenen IP'ye kendi soketiyle bağlanır ve MailKit'e verir; host adı TLS/SNI ve sertifika doğrulaması için korunur, DNS rebinding adresi değiştiremez.
  • KayitDenetimiAsync(host, port, izinVerOzelAg) ayar kaydedilirken çağrılır; ürün istisnayı 400'e çevirir.

SmtpEmailSender bu denetimi kendiliğinden uygular: AddSmtpEmailSender(defaultOptions, izinVerOzelAg); ürün bayrağı configuration.GetValue<bool>("Smtp:AllowPrivateHosts") ile okuyup geçirir. Tenant SMTP'sini kendi MailKit kodu ile kullanan ürünler SmtpHedefDenetimi.BaglanAsync'i çağırmalıdır.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.2 102 10/23/2026
1.0.1 95 10/22/2026
1.0.0 994 8/28/2026

SMTP hedef denetimi (SSRF): SmtpHedefDenetimi (port izin listesi 25/465/587/2525; özel, loopback, link-local, CGNAT ve IPv4-mapped adresler reddedilir; DNS bir kez cozulur, denetlenen IP'ye baglanilir, host adi TLS/SNI icin korunur), KayitDenetimiAsync, SmtpHedefReddedildiException. SmtpEmailSender ve AddSmtpEmailSender(izinVerOzelAg) bunu kullanir; platform bayragi Smtp:AllowPrivateHosts. KIRICI: 25/465/587/2525 disindaki portlar ve ozel aga giden hostlar artik reddedilir. Tapis.Core.Shared 2.0.22 ile birlikte yayimlanir.