You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Blazor server side, AttachFromFilename locks the attached file and when I try to override or delete the pdf file the error is "Cannot override/delete the file because it is being used by another process"
I cannot find a way to release or dispose of the attachment.
The code I am using is
var oneEmail = FluentEmail.Core.Email
.From(configuration["EmailSettings:From"])
.To(email.Email)
.Subject(email.Subject)
.AttachFromFilename(pdfFile, "application/pdf", "Document.pdf")
.UsingTemplateFromFile("Pages/Templates/EmailTemplate.cshtml", email);
var res = await oneEmail.SendAsync();
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Blazor server side, AttachFromFilename locks the attached file and when I try to override or delete the pdf file the error is "Cannot override/delete the file because it is being used by another process"
I cannot find a way to release or dispose of the attachment.
The code I am using is
var oneEmail = FluentEmail.Core.Email
.From(configuration["EmailSettings:From"])
.To(email.Email)
.Subject(email.Subject)
.AttachFromFilename(pdfFile, "application/pdf", "Document.pdf")
.UsingTemplateFromFile("Pages/Templates/EmailTemplate.cshtml", email);
var res = await oneEmail.SendAsync();
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions