It seems that in the send.mail function, to ends up being a default parameter. This is because .valid.email applies on to whether or not to exists. It's useful for it to not be the case when mails are sent to bcc recipients only.
Perhaps the following amendment should address this issue?
It seems that in the
send.mail
function,to
ends up being a default parameter. This is because.valid.email
applies onto
whether or notto
exists. It's useful for it to not be the case when mails are sent to bcc recipients only.Perhaps the following amendment should address this issue?