in reply to gmail and Net::SMTP

Did you read gmail sending in 2020, which seems to be on your exact topic? It looks like Email::Sender was the recommended sending module.

Regarding code blocks: remove the huge number of trailing spaces from your code, and it would look fine.

Replies are listed 'Best First'.
Re^2: gmail and Net::SMTP
by morgon (Priest) on Mar 12, 2020 at 20:05 UTC
    Evidently I have not read that.

    Every time I try to send email in a script (every 5 years or so) things have changed beyond recognition.

    Oh well...

      Perhaps you mean, "Every time I try to send email via gmail in a script (every 5 years or so) Google has changed things beyond recognition"? Personally, I've been using one of Mail::Sendmail or Net::SMTPS/Net::SMTP for the past couple of decades without significant problems. But that's probably because I'm not using Google to perform the sending. YMMV.