minor changes to send_recipient_email function