sendmailR
Outlook 経由でパッケージを含むメールを送信できません。私のメイン コンピューター (Windows マシン) では問題なく動作しますが、Ubuntu を実行している仮想マシンで試してみると、次のエラーが発生します。
Error in socketConnection(host = server, port = port, blocking = TRUE) :
cannot open the connection
In addition: Warning message:
In socketConnection(host = server, port = port, blocking = TRUE) :
MYADRESSE.local:25 cannot be opened
ホストマシンで再び正常に動作する次のコードを使用しました。
library(sendmailR)
from <- "myname@company.com"
to <- "myname@company.com"
subject <- "Performance Result"
body <- "This is the result of the test:"
mailControl=list(smtpServer="MYADRESSE.local")
sendmail(from=from,to=to,subject=subject,msg=body,control=mailControl)
アクセスするには仮想マシンをセットアップする必要がありますMYADRESSE.local
か? 2 つ (ホストとホスト) 間のネットワークは「ブリッジ」に設定されます。私の最終的な目標は、光沢のあるサーバーを使用して、ホストのメインの Outlook を介して電子メールを送信できるアプリを作成することです。