Note:
RUN AS LOCALSYSTEM USER.
The Bitlocker deactivated status will be mailed to the sender's Mail (EmailTo)
1.Provide the ToEmail address in the parameter 'EmailTo' where the mail need to be sent. the datatype should be a string.
2.Provide the From Email (Gmail) address in the parameter 'EmailFrom' from which the mail to be send. the datatype should be a string.
3.Provide application password for from email in the parameter 'Password'. the datatype should be a string.
4.Provide mail flag in the parameter 1 or 0 (1 - outlook, 0 - gmail). the datatype should be a int.
Gmail
use this link to generate application password https://security.google.com/settings/security/apppasswords
1) Turn on Two-step verification ( https://security.google.com/settings/security )
2) select other in "select app" section
3) give any app name
4) select generate and use the 16 digit code as application password instead of email password
Outlook
use this link to generate application password https://account.microsoft.com/security
1) Select Advance security options
2) Turn on Two-step verification
3) After completing Two-step verification scroll down in Advance security options page for App password Section
4) Select create a app password and use the 16 digit code as application password instead of email password