blastula icon indicating copy to clipboard operation
blastula copied to clipboard

smtp_send gives an error the first time - everytime

Open sanjmeh opened this issue 6 years ago • 2 comments

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.

sanjmeh avatar Dec 07 '19 17:12 sanjmeh

Need to remind that this issue still exists. And is replicable.

sanjmeh avatar Feb 12 '20 02:02 sanjmeh

Have you tried using smtp_send() with other SMTP providers? I'm wondering whether this is an issue that's specific to Gmail.

rich-iannone avatar Apr 03 '20 15:04 rich-iannone