in reply to As for sending more than one contact using perl TLS gmail

Is this an answer that should have been in some previous thread or did you just forget to ask a question?

If your question is "why is this script not working", without having tested it I would guess that

$smtp->to("some1@gmail.com\n", "some2@gmail.com\n");

should work better if written like this:

$smtp->to("some1\@gmail.com", "some2\@gmail.com");

Replies are listed 'Best First'.
Re^2: As for sending more than one contact using perl TLS gmail
by L1nuxer (Initiate) on Jan 28, 2011 at 22:01 UTC
    So I put as an example, I do not know how to get a message to more than one contact gmail.
    $smtp->to("some1@gmail.com\n", "some2@gmail.com\n");
    jethro, even with the changes do not run.
    $smtp->to("some1\@gmail.com\n", "some2\@gmail.com\n");
    return erro:
    Couldn't send TO <some1@gmail.com >: 503 5.5.1 MAIL first. v39sm373565yba.19 at gmail_test.pl line 235

      Remove the \n from your email adresses:

      $smtp->to("some1\@gmail.com", "some2\@gmail.com");