Possible enhancements for Send-PnPMail

%3CLINGO-SUB%20id%3D%22lingo-sub-38081%22%20slang%3D%22en-US%22%3EPossible%20enhancements%20for%20Send-PnPMail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-38081%22%20slang%3D%22en-US%22%3E%3CP%3ETried%20to%20post%20this%20yesterday%20but%20for%20some%20reason%20it%20didn't%20seem%20to%20take.%20%26nbsp%3BWhile%20I%20have%20been%20away%20at%20other%20tasks%2C%20it%20appears%20that%20many%20new%20cmdlets%20have%20appeared%20and%20this%20is%20wonderful.%20%26nbsp%3BI%20see%20that%20an%20email%20command%20to%20simplify%20SMTP%20notifications%20is%20now%20available%2C%20and%20I%20have%20two%20comments%2Frequests%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20It%20would%20be%20good%20if%20the%20cmdlet%20could%20take%20a%20label%20for%20a%20locally%20stored%20set%20of%20credentials%20in%20the%20Windows%20Credential%20Manager%20(similar%20to%20Connect-PnPOnline)%20so%20that%20I%20would%20not%20have%20to%20put%20my%20credential%20information%20(or%20credential%20information%20for%20a%20service%20account)%20in%20clear%20text%20inside%20my%20scripts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Also%20welcome%20would%20be%20the%20ability%20to%20add%20attachments%20to%20the%20emails%20being%20sent.%20%26nbsp%3BFor%20example%2C%20I%20have%20a%20script%20that%20will%20run%20unattended%20and%20generate%20reports%20every%20night.%20%26nbsp%3BIt%20would%20be%20great%20to%20add%20those%20reports%20as%20attachments%20to%20an%20email%20so%20that%20I%20could%20send%20it%20to%20the%20relevant%20individual%20and%20have%20the%20reports%20sitting%20in%20their%20inbox%20when%20they%20come%20to%20work%20in%20the%20morning.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20listening!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-38081%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

Tried to post this yesterday but for some reason it didn't seem to take.  While I have been away at other tasks, it appears that many new cmdlets have appeared and this is wonderful.  I see that an email command to simplify SMTP notifications is now available, and I have two comments/requests:

 

1. It would be good if the cmdlet could take a label for a locally stored set of credentials in the Windows Credential Manager (similar to Connect-PnPOnline) so that I would not have to put my credential information (or credential information for a service account) in clear text inside my scripts.

 

2. Also welcome would be the ability to add attachments to the emails being sent.  For example, I have a script that will run unattended and generate reports every night.  It would be great to add those reports as attachments to an email so that I could send it to the relevant individual and have the reports sitting in their inbox when they come to work in the morning.

 

Thanks for listening!

0 Replies