If anyone is interested I managed to get this plugin to send an email as the action of a macro. Possible use cases would be broad, such as sending an email if the computer is dropping frames or bitrate, some sort of an error or you started streaming and you want to notify someone. My use case is if an audio device is below a certain level for a period of time then send an email.
This works in Windows but could probably be used to work in Mac and Linux if you use Powershell 7.
1. Open Windows Powershell ISE or Notepad and paste in the following code, modifying from/to email, email password and smtp server & port to suit your needs
$secpasswd = ConvertTo-SecureString "emailpassword" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ("fromemail@gmail.com", $secpasswd)
Send-MailMessage -SmtpServer smtp.gmail.com -Credential $cred -UseSsl -Port 587 -From 'fromemail@gmail.com' -To 'toemail@gmail.com' -Subject 'Audio device disconnected' -Body 'Check audio is connected on audio recording server'
If you use Gmail ensure you've created an App password and use that as the password, otherwise it will not work as you can no longer disable less-secure apps.
2. Save the file as whatever.ps1
3. In OBS select Run as the macro action and paste in or browse to C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe
4. Add the following as an argument, modifying it to match your file path and name:
powershell.exe -executionpolicy bypass -File C:\Users\User\Desktop\whatever.ps
If you don't want to use -executionpolicy bypass then first run Powershell as Administrator and enter in
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
To the developer, having a native way to send emails could be cool.