Reputation: 4151
I looked up sending mail in R and found that the libarary SendMailR can be used for smpt but does not seem to have any IMAP related options.
An example of what I've found so far. how do you send email from R
Upvotes: 1
Views: 529
Reputation: 368201
You are confused. Mail flows in two ways:
To you -- that is IMAP, POP, ... and you do not send that way but receive.
From you -- that is SMTP and you (generally) need to interact with a mail-sending program like sendmail, exim, qmail, ... or the smtp service offered by the Google GMail back end. As I recall, SendMailR can deal with these.
So in short, _there is no sending via IMAP. (Check eg the advanced email setup options of your smartphone. They generally split it between receiving -- my point 1. above -- and sending as in point 2.)
The simplest way to send then depends on your operating system. These details matter.
Upvotes: 6