Skip to content

Commit

Permalink
fix(error in mail logo for sharing): sharing bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Pickering committed Feb 12, 2024
1 parent da112d1 commit 84bdd3c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions web/Services/EmailService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ public async Task SendAsync(string subject, string body, string sender, string r
System.Text.Encoding.UTF8,
MediaTypeNames.Text.Html
);

LinkedResource MyImage = new LinkedResource(
_cache.Get("logo_path").ToString(),
"image/png"
)
string logo = "wwwroot/img/atlas-a-logo.svg";
if (_cache.Get("logo_path") != null)
{
logo = _cache.Get("logo_path").ToString();
}
LinkedResource MyImage = new LinkedResource(logo, "image/png")
{
ContentId = "atlas_logo",
TransferEncoding = TransferEncoding.Base64,
Expand Down

0 comments on commit 84bdd3c

Please sign in to comment.