in reply to Re: Multiple Recipients in email
in thread Multiple Recipients in email

The "no valid recipients" message is coming from a croak statement in the Email::Send::Gmail module.

The problem as is turns out is an error in the module code that varifies the recipient addresses. The current version of the module finds an error with multiple addresses when there is none.

The fix was simple. Just needed a pair of parentheses around line 57:

<<< my @ok = $smtp->to( @to, { SkipBad => 1 } ) >>> (my @ok = $smtp->to( @to, { SkipBad => 1 } ))
I have sent an email to the maintainer to this effect. Hopefully he will find time to make the change.

Replies are listed 'Best First'.
Re^3: Multiple Recipients in email
by Anonymous Monk on Jan 18, 2014 at 01:46 UTC
    I know this is old, but thanks!!! This was the problem. Thanks for posting this4 years ago!
Re^3: Multiple Recipients in email
by Anonymous Monk on Apr 10, 2014 at 12:27 UTC
    Yes, thanks for that suggested fix to Gmail.pm! It was line 57 in my copy. This fixed my problem!