Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/FluentEmail.Core/Email.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public IFluentEmail Attach(IEnumerable<Attachment> attachments)

public IFluentEmail AttachFromFilename(string filename, string contentType = null, string attachmentName = null)
{
var stream = File.OpenRead(filename);
var stream = new MemoryStream(File.ReadAllBytes(filename));
Attach(new Attachment
{
Data = stream,
Expand Down