I am trying send an email to the flow inbox via PowerShell script with log files attached, but its not working. Can you help me on how to achieve this.
What exactly is not working for you?
Here is an instruction on how to generally send an email with attachments via powershell: Send an email with an attachment using PowerShell - TechRepublic
If you set
to send the email to your inbox, it should work.
I tried the same script, but throws the following error : Error sending to the following INVALID addresses, but when I use the same email "<flowname>@<orgname>.flowdock.com" from my outlook it's working.
Interesting. As sending the email works from outlook, it must be something to do with how powershell interprets, checks on the addresses. So I would rather check on that end.
This is the error PS is throwing for the email id of flow.
Exception calling "Send" with "1" argument(s): "Mailbox unavailable. The server response was: 5.7.1 Relaying denied"
It seems like it is related to this:
Powershell v3 - Unable to send mail using Send-MailMessage to an external domain You probably need to authenticate to use your email server...