Modifies the function for sending emails to use setRecipient instead of setRecipients

The method setRecipients caused  a strange ArrayIndexOutOfBoundsException, using setRecipient instead fixes this.

Author: nfbrown