It's been about 4 months since working with the PnP Powershell, and I see that there are many nice new commands. One is the Send-PnPMail, which is lovely but will really only be useful with a couple of enhancements:
It would be good if the credentials that need to be passed could be stored in the Credential Manager with a label, similar to Connect-PnPOnline, so that I do not have to have them in clear text in the script.
It would also be good if we could add attachments to the emails being sent. Some of my scripts will be run on a timer job and will generate reports overnight (in plain text, xml, html or csv). I would like the script generating the reports to attach them to an email that can be sent to a user so that when they arrive at work in the morning, the reports are sitting in their inbox.
I do have a work-around that uses the plain vanilla PowerShell Send-MailMessage cmdlet, but it would be nice to be able to skip all of the SMTP set up and parameters and just use the O365 SMTP mail server instead.