function

How to Allow a Multi-function Device or Application to Send E-mail through Office 365 Using SMTP

SMTP (Simple Mail Transfer Protocol) is used when you set up an on-premises multi-function printer, scanner, fax, or line of business (LOB) application that needs to send email. If some or all of your mailboxes are in Office 365, there are a few options available: SMTP relay, client SMTP submission, or Direct Send

Multi Function Devices with Office 365 SMTP relay

FIXED-WORKING

Here is what I have:

1.  Office365 Wave 15 Update

2.  Brother MFC-8950DW with firmware L 1.04

3.  Office365 Exchange Plan 1 (Enterprise)

SMTP Setup:

SMTP Server Address:  smtp.office365.com

SMTP Port: 587

SMTP Server Authentication:  SMTP-AUTH

SMTP-AUTH Account Name:  your@domain.com (note that the account I used is a full admin and this may be required)

SMTP-AUTH Account Password: your password here

SMTP over SSL/TLS:  TLS

Get running PowerShell script Current Directory (function)

function Get-ScriptDirectory
{
    $Invocation = (Get-Variable MyInvocation -Scope 1).Value;
    if($Invocation.PSScriptRoot)
    {
        $Invocation.PSScriptRoot;
    }
    Elseif($Invocation.MyCommand.Path)
    {
        Split-Path $Invocation.MyCommand.Path
    }
    else
    {
        $Invocation.InvocationName.Substring(0,$Invocation.InvocationName.LastIndexOf("\"));
    }
}

 

Subscribe to RSS - function