Thanks for answering! I've changed username => 'diffredential', but the same error appears after running it:
diffred@fredlab:~/pathscripts$ ./sendemail.pl Net::SMTP::SSL>>> Net::SMTP::SSL(1.01) Net::SMTP::SSL>>> IO::Socket::SSL(1.17) Net::SMTP::SSL>>> IO::Socket::INET(1.29) Net::SMTP::SSL>>> IO::Socket(1.29) Net::SMTP::SSL>>> IO::Handle(1.25) Net::SMTP::SSL>>> Exporter(5.58) Net::SMTP::SSL>>> Net::Cmd(2.29) Net::SMTP::SSL=GLOB(0x8580dd0)<<< 220 mx.google.com ESMTP g11sm3962449 +gve.8 Net::SMTP::SSL=GLOB(0x8580dd0)>>> EHLO localhost.localdomain Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-mx.google.com at your service, [ +80.32.103.182] Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-SIZE 35651584 Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-8BITMIME Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-AUTH LOGIN PLAIN Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250 ENHANCEDSTATUSCODES Error sending email: Email::Send::Gmail: error authenticating username + diffredential at /usr/local/share/perl/5.8.8/Email/Send.pm line 243 at ./sendemail.pl line 29 diffred@fredlab:~/pathscripts$
Any other ideas? :(

In reply to Re^2: Sending a simple email using Email::Send::Gmail by diffredential
in thread Sending a simple email using Email::Send::Gmail by diffredential

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.