rapache icon indicating copy to clipboard operation
rapache copied to clipboard

rApache notice! *** stack smashing detected *** with mailR::send_mail

Open alexvpickering opened this issue 7 years ago • 0 comments

To reproduce, get rApache to run a script with the following:

mailR::send.mail(
         from = '',
          to = "",
          replyTo = "",
          subject = "Subject of the email",
          body = "Body of the email",
          smtp = list(host.name = '',
                      port = 25,
                      user.name = '',
                      passwd = '',
                      ssl = TRUE),
          authenticate = TRUE,
          send = TRUE)

To get Amazon SES credentials (what I used) go here. You'll have to verify an email address for to, replyTo, and from (can all be the same) here.

mailR uses rJava so you may have to edit /etc/apache2/envvars as described in #47.

I personally got around the issue by using the aws.ses package instead, but thought it might be useful to post the issue in case it has broader implications.

alexvpickering avatar Jan 26 '18 16:01 alexvpickering