This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ibox { margin-bottom: 20px; } | |
.ibox .title { background-color: #dfdfdf; color: #3b3b3b; } | |
.ibox .title h5 { font-size: 18px; } | |
.ibox .content { background-color: #ffffff; padding: 15px; } | |
.ibox .footer { background-color: #dfdfdf; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$primary-background: #ffffff; | |
$secondary-background: #dfdfdf; | |
.ibox{ | |
margin-bottom: 20px; | |
.title { | |
background-color: $secondary-background; | |
color: #3b3b3b; | |
h5 { font-size: 18px; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ibox"> | |
<div class="title"> | |
<h5>THIS IS TITLE</h5> | |
</div> | |
<div class="content"> | |
THIS IS CONTENT | |
</div> | |
<div class="footer"> | |
THIS IS FOOTER | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table cellspacing="0" cellpadding="0" style="width:100%"> | |
<tr> | |
<td bgcolor="#f1efed" style="text-align:center;padding:20px 0;"> | |
<table align="center" bgcolor="#ffffff" cellspacing="0" cellpadding="0" style="width:500px;"> | |
<tr> | |
<td bgcolor="#f1efed" style="padding-bottom:20px; text-align:center;" > | |
<img style="width:220px;height:50px" src="data:image/png;base64,....." /> | |
</td> | |
</tr> | |
<tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public async Task<IActionResult> SendMail() | |
{ | |
try | |
{ | |
//point to your wwwroot folder | |
string templatePath = $"{env.WebRootPath}/Templates"; | |
//setup Razor Light Engine | |
var engine = new RazorLightEngineBuilder() | |
.UseFilesystemProject(templatePath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("upload/result")] | |
[HttpPost] | |
public async Task<IActionResult> UploadResult([FromForm]UploadImageModel model) | |
{ | |
if(model.Files.Count == 0) | |
return BadRequest("result picture not found"); | |
var file = model.Files[0]; | |
if (file.Length / 1024 / 1024 > 2) |