資源簡介
SendGrid發送郵件Demo,可群發。
類庫方式(ASPNet Core 2.2),可跨平臺。

代碼片段和文件信息
using?SendGrid.Helpers.Mail;
namespace?SendGridLib
{
????///?
????///?EmailSender默認配置
????///?
????public?class?EmailOptions
????{
public?string?SendGridKey?{?get;?set;?}?=?“【你的Sndgrid?ApiKey】“;????????
????????public?EmailAddress?SendGridEmailFrom?{?get;?set;?}?=?new?EmailAddress(“admin@localhost.com“?“admin“);//默認發件人與發件人顯示名稱
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????146??2018-12-26?00:41??SendGridApp\appsettings.Development.json
?????文件????????105??2018-12-26?00:41??SendGridApp\appsettings.json
?????文件?????235768??2018-12-26?00:42??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.deps.json
?????文件??????11776??2018-12-26?00:56??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.dll
?????文件???????2008??2018-12-26?00:56??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.pdb
?????文件????????252??2018-12-26?00:42??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.runtimeconfig.dev.json
?????文件????????224??2018-12-26?00:42??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.runtimeconfig.json
?????文件??????66048??2018-12-26?00:56??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.Views.dll
?????文件???????4692??2018-12-26?00:56??SendGridApp\bin\Debug\netcoreapp2.2\WebApplication1.Views.pdb
?????文件???????1300??2018-12-26?01:00??SendGridApp\Controllers\HomeController.cs
?????文件????????218??2018-12-26?01:00??SendGridApp\Models\ErrorViewModel.cs
?????文件?????113974??2018-12-26?01:01??SendGridApp\obj\Debug\netcoreapp2.2\SedGridApp.assets.cache
?????文件??????66048??2018-12-26?01:00??SendGridApp\obj\Debug\netcoreapp2.2\SedGridApp.Views.dll
?????文件??????????0??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????1028??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.AssemblyInfo.cs
?????文件?????????42??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.AssemblyInfoInputs.cache
?????文件?????113974??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.assets.cache
?????文件??????????0??2018-12-26?00:56??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.csproj.CopyComplete
?????文件?????????42??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.csproj.CoreCompileInputs.cache
?????文件???????3699??2018-12-26?00:55??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.csproj.FileListAbsolute.txt
?????文件?????258456??2018-12-26?00:55??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.csprojAssemblyReference.cache
?????文件??????11776??2018-12-26?00:56??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.dll
?????文件???????2008??2018-12-26?00:56??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.pdb
?????文件?????????42??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.RazorAssemblyInfo.cache
?????文件????????939??2018-12-26?00:41??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.RazorAssemblyInfo.cs
?????文件?????????42??2018-12-26?00:42??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.RazorCoreGenerate.cache
?????文件?????????42??2018-12-26?00:42??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.RazorTargetAssemblyInfo.cache
?????文件???????1259??2018-12-26?00:42??SendGridApp\obj\Debug\netcoreapp2.2\WebApplication1.RazorTargetAssemblyInfo.cs
............此處省略115個文件信息
評論
共有 條評論