rstudio / blastula

Easily send great-looking HTML email messages from R
https://pkgs.rstudio.com/blastula
Other
547 stars 85 forks source link

smtp_send hangs on many occasions #270

Open hypebright opened 3 years ago

hypebright commented 3 years ago

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.

lindblb commented 8 months ago

Also experiencing this