Flowdock

Expand all | Collapse all

Email to Flow in-Box via PowerShell Script

  • 1.  Email to Flow in-Box via PowerShell Script

    Posted 02-09-2018 05:40 AM

    Hi Team,

     

    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.

     

    -Bharadwaj



  • 2.  Re: Email to Flow in-Box via PowerShell Script

    Posted 02-09-2018 06:17 AM

    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 

    $msg.To.Add("<flowname>@<orgname>.flowdock.com")
     

    to send the email to your inbox, it should work.



  • 3.  Re: Email to Flow in-Box via PowerShell Script

    Posted 02-09-2018 06:30 AM

    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.



  • 4.  Re: Email to Flow in-Box via PowerShell Script

    Posted 02-09-2018 08:05 AM

    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. 



  • 5.  Re: Email to Flow in-Box via PowerShell Script

    Posted 02-13-2018 03:21 AM

    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"



  • 6.  Re: Email to Flow in-Box via PowerShell Script

    Posted 02-13-2018 05:47 AM

    Bwaj,

     

    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...

     

    Michael