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
In reply to Re: Problem using Gmail Send
by kcott
in thread Problem using Gmail Send
by IvanH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |