smtp_send gives an error the first time - everytime
The function smtp_send() seems to be hitting a time out every time you fire it after a few minutes.
First attempt:
emails %>% walk(~smtp_send(email = .x,to = "[email protected]",from = "[email protected]",subject = "blastula composed email",credentials = creds_file("blastula_gmail_creds")))
Error in curl::curl_fetch_memory(url, handle = h) : LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
Second attempt
emails %>% walk(~smtp_send(email = .x,to = "[email protected]",from = "[email protected]",subject = "blastula composed email",credentials = creds_file("blastula_gmail_creds")))
##The email message was sent successfully. ##The email message was sent successfully.
I have seen this pattern repeats every time. If I send emails in quick succession they are sent successfully. After a while if I send the same emails the results is above error.
Need to remind that this issue still exists. And is replicable.
Have you tried using smtp_send() with other SMTP providers? I'm wondering whether this is an issue that's specific to Gmail.