Send-MailKitMessage icon indicating copy to clipboard operation
Send-MailKitMessage copied to clipboard

Module doesnt work on Linux with PowerShell Core

Open soumyakt opened this issue 2 years ago • 1 comments

Hi,

Can you please check and confirm if module works with PowerShell core on Linux? I have been trying to use the module on multi OS infra, however it fails on Linux but works on Windows. It always complains about incorrect credentials though same works on windows ( or Send-MailMessage works on linux with same cred)

Error: Send-MailKitMessage @mailParams -Verbose | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 535: 5.7.139 Authentication unsuccessful, the user credentials were incorrect

soumyakt avatar Sep 18 '23 12:09 soumyakt

I believe this issue might be related to issue https://github.com/PowerShell/PowerShell/issues/19317. This line requires to be changed. https://github.com/austineric/Send-MailKitMessage/blob/69070366727a2a1d5986ad6706d86d3eba978ede/Project/Send_MailKitMessage.cs#L161

jlbaptista avatar Sep 22 '23 14:09 jlbaptista