Authentication Fails Trying to Send Mail via Google Apps SMTP from PHP

As you may know helgeklein.com also hosts a forum where I help people who have questions related to my software. The forum is configured to send out emails when new posts are added or when newly registered users need to confirm their email addresses. Since I use Google Apps for helgeklein.com I configured Google’s SMTP server for outgoing emails. All worked well until recently when I started to wonder why I had not received new forum post emails for several days.
Website