FluentEmail icon indicating copy to clipboard operation
FluentEmail copied to clipboard

crashes on macOS - cannot write to disk

Open AUnicornWithNoLife opened this issue 1 year ago • 2 comments

crashes on macOS saying that disk is read-only, this happens for both .send() and .SendAsync()

I am using .net 6.0, and visual studio for Mac to build

Unhandled exception. System.IO.IOException: Read-only file system : '/2023-01-17_17-05-04_500'
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at FluentEmail.Core.Defaults.SaveToDiskSender.SaveEmailToDisk(IFluentEmail email)
   at FluentEmail.Core.Defaults.SaveToDiskSender.SendAsync(IFluentEmail email, Nullable`1 token)
   at FluentEmail.Core.Defaults.SaveToDiskSender.Send(IFluentEmail email, Nullable`1 token)
   at FluentEmail.Core.Email.Send(Nullable`1 token)
FluentEmail.Core.Email
    .From("[email protected]")
    .To("[email protected]")
    .Subject("example")
    .Body("example")
    .Send();

AUnicornWithNoLife avatar Jan 17 '23 17:01 AUnicornWithNoLife

same issue here

Willmish avatar Mar 20 '23 22:03 Willmish

Has anyone found a resolution for this? I am also running into this issue.

nauticalcoder avatar Jan 05 '24 19:01 nauticalcoder