Completed logic to send messages to recipients.