gmail and Net::SMTPby morgon (Priest)
|on Mar 12, 2020 at 18:42 UTC ( #11114183=perlquestion: print w/replies, xml )||Need Help??|
morgon has asked for the wisdom of the Perl Monks concerning the following question:
I cannot seem to figure out how to send mail via gmail using Net::SMTP (that's what you're supposed to use right?).
Here is what I try:
It all looks very silly to me and (even worse) it does not work.
I do not get an error, but no mail seems to get sent.
So my question: How do you send mail via gmail using perl in the year 2020?
Why do code-blocks look so bad now?
EDIT2: Because copying the code introduced a lot of white space - fixed that.
Back to Seekers of Perl Wisdom