ActionMailer with GMail problem and its workaround

I had a little problem today with one of my managed sites, one that was using ActionMailer for sending mails in a Contact Us form using GMail’s SMTP. But reading server logs wasn’t very enlightening. $ tail log/production.log Completed 500 Internal Server Error in 533ms Net::SMTPAuthenticationError…