[問題] sendmailR 要如何使用阿

看板R_Language作者 (拒看低質媒體)時間11年前 (2013/04/20 13:01), 編輯推噓1(104)
留言5則, 3人參與, 最新討論串1/1
[問題類型]: 程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來) [軟體熟悉度]: 開發者(有撰寫R 的套件經驗) [問題敘述]: 我想要用sendmailR來寄發email 給 gmail信箱 ps. RMessenger不能夾帶檔案,GG。 難道我該弄個R GoogleDrive之類的東西了?(誤) [程式範例]: ```r from <- sprintf("<sendmailR@\\%s>", Sys.info()[4]) to <- "<olafm@datensplitter.net>" subject <- "Hello from R" body <- list("It works!", mime_part(iris)) sendmail(from, to, subject, body, control=list(smtpServer="ASPMX.L.GOOGLE.COM")) ``` 錯誤訊息: ``` Error in wait_for(250) : SMTP Error: 5.7.1 [61.???.??.221] The IP you're using to send mail is not authorized to ``` [關鍵字]: R, email -- 歡迎加入 Taiwan R User Group : http://www.facebook.com/Tw.R.User 我們每週一都有在「政大公企中心(台北市金華街187號)西樓WB05」 舉辦Machine Learning / Data Mining Monday: 報名 http://www.meetup.com/Taiwan-R/ 聚會影片 https://www.youtube.com/user/TWuseRGroup -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.18.221 ※ 編輯: Wush978 來自: 61.230.18.221 (04/20 13:04)

04/20 21:52, , 1F
用你的code我寄給我自己的Gmail沒問題(但歸到垃圾郵件)
04/20 21:52, 1F

04/20 21:53, , 2F
不過只要我把to改成非gmail的信箱卻都寄不出去, why?
04/20 21:53, 2F

04/20 22:58, , 3F
看來是有時候可以用有時候不能用的那種...
04/20 22:58, 3F

04/21 11:02, , 4F
Server的domain name有申請嗎?
04/21 11:02, 4F

04/21 14:02, , 5F
沒有,請問是這個原因嗎?
04/21 14:02, 5F
文章代碼(AID): #1HSY4_xe (R_Language)