問題タブ [easendmail]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - C# - Linux で SMTP メール送信が機能しない
私のプログラムは、debian 10 Linux サーバーで実行されます。
C# プログラムで EASendMail というパッケージを使用しましたが、通常の System.Net.Mail でも機能しません。
これは、メールの送信に使用するコード スニペットです。
Linuxでプログラムを開始するたびに、プログラムdotnet run
全体が完全に実行されます。smtp 部分を実行すると、次のエラーが表示されます。Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libkernel32.dll: cannot open shared object file: No such file or directory
kernel32.dll が Windows 専用であることは理解していますが、これに対する修正はありますか?
前もって感謝します!!