in reply to Re: Gmail Send problem
in thread Gmail Send problem

As far as I can tell from Google's documentation they block after 500, and disable the email account for a day. I sent much less than that and the account wasn't blocked so I don't think that's the problem. How would I know if $mail->send failed for some reason.

Thanks

Replies are listed 'Best First'.
Re^3: Gmail Send problem
by toolic (Bishop) on Sep 17, 2014 at 19:12 UTC
    The Email::Send::SMTP::Gmail POD says you can use -verbose. When the documentation is inadequate, you should look at the source code, which shows that "send" can return a list. Try:
    my @returns = $mail->send(-to=>"$email", -subject=>"$subject", -body=>"$emailtext",-contenttype=>'text/html' -verbose=>1); print "@returns\n";