I’ve noticed a small problem while using the Mailgun SMTP plugin and an empty attachment URL. I get an error because in your wp_mail() function call you pass by default “false” as the attachment attribute. This value is not valid and should be array or string (check row 379).