mailgun_connector class connection fix