Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Gmail Send problem

by IvanH (Acolyte)
on Sep 17, 2014 at 18:59 UTC ( [id://1100959]=note: print w/replies, xml ) Need Help??


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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-20 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found