Bad Gateway Error with PHPMailer function


I am getting a 502 error in my app when trying to send an email with PHPMailer. Nothing fancy, just trying to send a basic contact page email (email address and message). Code has worked previously (last time I tested was a month ago). Any ideas on what might need to be changed on my end, or is this an issue on C9’s end?