Correction for issue #2388. 

Updated _build_message() to return a boolean. This will prevent an email from sending if there is an error trying to attach an attachment to the email.