To be able to send mail from a Raspberry Pi, you need to install software to allow this. You could use sendmail but I understand this is difficult to configure.
I have one Raspberry Pi that operates remotely which has email capability and sends me a weekly report. To do this I installed msmtp and used MIME::Lite to manipulate the emails.
My installation came from following these instructions:
https://www.howtoraspberry.com/2021/06/how-to-send-mail-from-a-raspberry-pi/
I am not claiming this is the best way to do it but it certainly works.
In reply to Re: getting SMTP capability working
by Bod
in thread getting SMTP capability working
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |