rapache
rapache copied to clipboard
rApache notice! *** stack smashing detected *** with mailR::send_mail
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.