blastula icon indicating copy to clipboard operation
blastula copied to clipboard

smtp_send hangs on many occasions

Open hypebright opened this issue 4 years ago • 1 comments

Did anybody else experience that sending an email with smpt_send causes the R session to freeze?

The first time it often goes right and it takes 2 seconds to get the confirmation message saying that 'The email message was sent successfully'. But often the second time, the process hangs and causes the whole R session to become non-responsive. The only option then is to harshly terminate the R process. There's no error message.

email <-
      blastula::compose_email(
        header = 'Test',
        body = blastula::md('Test body'),
        footer = blastula::md('Email sent today.')
      )

  email %>%
    blastula::smtp_send(
      to = XXX,
      from = XXX,
      subject = 'Test',
      credentials = blastula::creds_envvar(user = XXX
                                           pass_envvar = "my_env_var",
                                           host = "smtp.office365.com",
                                           port = 587,
                                           use_ssl = TRUE)
    )
    

We're making use ofRStudio Server Pro 1.4.1103-3, "Wax Begonia" (9cdf143e) on a Linux Ubuntu 18.04 VM.

hypebright avatar Jul 20 '21 06:07 hypebright

Also experiencing this

lindblb avatar Feb 26 '24 20:02 lindblb