in reply to Problem using Gmail Send

G'day IvanH,

As ++roboticus has pointed out, your core problem is the constructor (new()) failing. Here's some troubleshooting tips.

[The following is not documented as part of the published API, so don't rely on it remaining the same in future versions; however, looking at the latest (v0.85) source code, $mail with have a value of -1 if connection to the SMTP server failed.]

-- Ken