Since some people use Office365-CLI with pipeline or for an automation script on Azure or whatever... can sent an email of notification can be really useful... Send a mail ? Yes ! BUT as SharePoint like Send-PnPMail.
Currently, I'm using it (Send-PnPMail) for site factory or critical error catched from my script i production to be more efficiency.
Add a support for spo mail send command in order to :
Because we can create an other cmdlet that allow to retrieve all mail addresses of requests access (mail requestaccess get)
--to --subject --body Content of the email--from [From] specify who send notification-o, --output (no output)--verbose--debugShould we utilize the MS Graph apis to do that? I am not sure how it is implemented with the pnp cmdlets.
It works with REST API of SharePoint... I don't know with Graph.
@waldekmastykarz, what do you think?
I think this will be a useful addition as users will probably want to send emails from their O365 CLI script. Sending emails this way will be easier for most users than sending a mail via, for instance, mailx (MacOS/Linux) or the SMTPClient object (Win).
The PowerShell version facilitates sending mails via SharePoint _and_ O365, so the Graph API should also be included.
Maybe we can have commands for both, where spo mail send is the SharePoint apis version.
Totally agree with @VelinGeorgiev 馃槈
That indeed sounds like a good plan!
We already have graph user sendmail 馃槉 so I wonder what the added value of using the SharePoint version would be
Keep using SPO cmdlet rather than change context to graph 馃槃 (not need to graph login). That can be useful when you're creating an SharePoint script essentially.
Fair enough @Laul0. The current spec is ok. You want to pick it up yourself?
hmmmmm why not ^^
Hey @Laul0 are you still working on this? It seems like you have quite a few items on your name, all in progress. Shall we keep one and make other available for picking?
Hi @waldekmastykarz, I almost finish the dev locally for this issue.
I have to finish the recovery.
After this one, I have 2 other issues. I hope submit a least 2 PR next week
Awesome! Looking forward to it!