My code (listed bellow) works in R Studio (Windows) but throws eror when I tried to execute it from command line on ubuntu.
My code:
<code>library(keyring)
library(blastula)
keyring_unlock(password = "xx")
create_smtp_creds_key(
id = "gmailKonkurencja2",
user = "[email protected]",
host = "smtp.gmail.com",
port = 465,
provider = "gmail"
)
email2 <- compose_email(body = "Test")
email2%>%smtp_send(to = "xx@xx", from = "[email protected]",
subject = "Test", credentials = creds_key("gmailKonkurencja2") )
</code>
<code>library(keyring)
library(blastula)
keyring_unlock(password = "xx")
create_smtp_creds_key(
id = "gmailKonkurencja2",
user = "[email protected]",
host = "smtp.gmail.com",
port = 465,
provider = "gmail"
)
email2 <- compose_email(body = "Test")
email2%>%smtp_send(to = "xx@xx", from = "[email protected]",
subject = "Test", credentials = creds_key("gmailKonkurencja2") )
</code>
library(keyring)
library(blastula)
keyring_unlock(password = "xx")
create_smtp_creds_key(
id = "gmailKonkurencja2",
user = "[email protected]",
host = "smtp.gmail.com",
port = 465,
provider = "gmail"
)
email2 <- compose_email(body = "Test")
email2%>%smtp_send(to = "xx@xx", from = "[email protected]",
subject = "Test", credentials = creds_key("gmailKonkurencja2") )
This code gives my eror as You can see bellow
<code>The system key store has been updated with the "blastula-v1-gmailKonkurencja2" key with the `id` value "gmailKonkurencja2".
* Use the `view_credential_keys()` function to see all available keys
* You can use this key within `smtp_send()` with `credentials = creds_key("gmailKonkurencja2")`
Error in handle_setopt(h, ...) : Unknown option: login_options
Calls: %>% ... smtp_send -> <Anonymous> -> new_handle -> handle_setopt
</code>
<code>The system key store has been updated with the "blastula-v1-gmailKonkurencja2" key with the `id` value "gmailKonkurencja2".
* Use the `view_credential_keys()` function to see all available keys
* You can use this key within `smtp_send()` with `credentials = creds_key("gmailKonkurencja2")`
Error in handle_setopt(h, ...) : Unknown option: login_options
Calls: %>% ... smtp_send -> <Anonymous> -> new_handle -> handle_setopt
</code>
The system key store has been updated with the "blastula-v1-gmailKonkurencja2" key with the `id` value "gmailKonkurencja2".
* Use the `view_credential_keys()` function to see all available keys
* You can use this key within `smtp_send()` with `credentials = creds_key("gmailKonkurencja2")`
Error in handle_setopt(h, ...) : Unknown option: login_options
Calls: %>% ... smtp_send -> <Anonymous> -> new_handle -> handle_setopt
I want to send this email everyday using crontab on ubuntu.