相关疑难解决方法(0)

如何在Windows中发送带有R附件的电子邮件

我有一个从Windows机器运行的预定R脚本.

完成后,我希望此脚本自动发送附带一些日志文件的电子邮件.

使用shell()其他一些脚本可能是可能的,但我想知道R内是否有更好的解决方案.谢谢.

email r sendmailr

52
推荐指数
4
解决办法
4万
查看次数

如何使用R发送/接收(SMTP/POP3)电子邮件?

我强烈怀疑最受欢迎的答案是"这是工作的错误工具".我承认是R可能不是特别适合用于发送和接收电子邮件,但它是脚本语言,我知道最好的.我希望能找到一种方法,在R.发送和接收短邮件有谁知道一个既定的方式做到这一点在Windows平台上?我或许可以使用BLAT和GetMail的组合,但首选原生R解决方案.

编辑:可接受的解决方案应该能够与需要SSL的服务器连接.

编辑2:我提供了80%的回答.可悲的是,没有证明R本地方式.相反,我使用系统调用和命令行程序的邪恶组合,这些程序很可能不会跨平台兼容.R本地调用将需要深入研究POP3服务器与连接客户端交互的方式,以及对我目前没有的SSL的理解.其他答案仍然鼓励.

##Note: Other programs are wrapped in R functions and system calls.
#They each have their own licenses which may or may not allow the use suggested here
#Programs used here:
#STunnel: http://www.stunnel.org/; Provides an SSL tunnel but requires OpenSSL 
#OpenSSL: http://www.openssl.org/; OpenSSL to actually provide SSL
#   Note that these .dlls should be placed with the stunnel exe.
#   Also note that libssl32.dll may need to be renamed from ssleay32.dll
#Microsoft Visual C++ 2008 Redistributable …
Run Code Online (Sandbox Code Playgroud)

email r

12
推荐指数
2
解决办法
7411
查看次数

sendmailR:将编码的邮件提交给本地SMTP服务器

我需要你的帮助才能使用函数sendmail {sendmailR}从R中发送包含希腊语文本的电子邮件.

我尝试使用这个功能iconv,但它没有用

subject <- iconv("text in greek", to = "CP1253")
sendmail(from, to, subject, msg, control=list(smtpServer="blabla"))
Run Code Online (Sandbox Code Playgroud)

邮件立即到达,但希腊字符不可读.有任何想法吗?

编辑

提出的另一个问题:第二个论点to接受一个收件人.如果想将其发送给多个人怎么办?(我想会尝试将功能提供给收件人矢量) - 好的,这很有sendmail.但是,我并不完全满意,因为每个收件人都无法知道还有谁收到了邮件.

email encoding smtp r

6
推荐指数
1
解决办法
1135
查看次数

标签 统计

email ×3

r ×3

encoding ×1

sendmailr ×1

smtp ×1