Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /example/NETCore.MailKit.Web/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |
12 |13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |
15 | -------------------------------------------------------------------------------- /example/NETCore.MailKit.Web/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | @inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet 2 | 3 | 4 | 5 | 6 | 7 |Font size is 18px ,color is red
", true); 59 | } 60 | 61 | [Fact(DisplayName = "MailAttachmentsTest")] 62 | public void Send_Email_Attachments_Test() 63 | { 64 | string[] listAttch = new string[] 65 | { 66 | "", 67 | "" 68 | }; 69 | 70 | _EmailService.Send(_MailToOne, "Test MailKit Extensions with Attachments", "Hello MailKit", listAttch); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /test/NETCore.MailKit.Tests/NETCore.MailKit.Tests.csproj: -------------------------------------------------------------------------------- 1 |