• 大小: 988KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: ASP
  • 标签: SendGrid  发邮件  免SMTP  

资源简介

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个文件信息

评论

共有 条评论

相关资源