Setup Guide

M365 Integration Guide

Add verification badges to your Microsoft 365 outgoing emails in under 10 minutes.

Prerequisites

  • Microsoft 365 admin access (Exchange Online)
  • Exchange Online PowerShell module installed
  • Transport Rules permissions (Organization Management role)

Select a badge style for your emails. The HTML templates below can be used in M365 Transport Rules.

Minimal Badge (Recommended)

html
<!-- eVerified Badge - Add to M365 Transport Rule Disclaimer -->
<!-- Replace YOUR_TOKEN with the token from eVerified API -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-top:16px;">
  <tr>
    <td style="padding:12px 20px;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td style="vertical-align:middle;padding-right:12px;">
            <a href="https://everified.us/verify/YOUR_TOKEN"
               style="text-decoration:none;" target="_blank">
              <img src="https://everified.us/api/badge/YOUR_TOKEN?style=minimal"
                   alt="Verified by eVerified"
                   style="height:36px;border:0;" />
            </a>
          </td>
          <td style="vertical-align:middle;">
            <span style="font-family:system-ui,sans-serif;font-size:12px;color:#6b7280;">
              Click the badge to verify this email's authenticity
            </span>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Security Badge

html
<!-- eVerified Security Badge - Professional Style -->
<!-- Replace YOUR_TOKEN with the token from eVerified API -->
<table cellpadding="0" cellspacing="0" border="0" style="margin-top:16px;">
  <tr>
    <td style="padding:14px 24px;background-color:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;">
      <a href="https://everified.us/verify/YOUR_TOKEN"
         style="text-decoration:none;" target="_blank">
        <img src="https://everified.us/api/badge/YOUR_TOKEN?style=security"
             alt="Email Verified - eVerified"
             style="height:48px;border:0;" />
      </a>
    </td>
  </tr>
</table>

Use PowerShell to create a Transport Rule that appends the badge to outgoing emails.

powershell
# eVerified - M365 Transport Rule Setup
# Run in Exchange Online PowerShell

# Connect to Exchange Online (if not already connected)
# Connect-ExchangeOnline -UserPrincipalName [email protected]

# Step 1: Create a new Transport Rule
New-TransportRule -Name "eVerified Badge" \
  -FromScope InOrganization \
  -SentToScope NotInOrganization \
  -ApplyHtmlDisclaimerLocation Append \
  -ApplyHtmlDisclaimerText '<table cellpadding="0" cellspacing="0" border="0" style="margin-top:16px;"><tr><td style="padding:12px 20px;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;"><a href="https://everified.us/verify/YOUR_TOKEN" style="text-decoration:none;" target="_blank"><img src="https://everified.us/api/badge/YOUR_TOKEN?style=minimal" alt="Verified by eVerified" style="height:36px;border:0;" /></a></td></tr></table>' \
  -ApplyHtmlDisclaimerFallbackAction Wrap

Write-Host "Transport Rule 'eVerified Badge' created successfully!" -ForegroundColor Green

Note: You can also create this rule through the Exchange Admin Center UI under Mail flow > Rules > Add a rule > Apply disclaimers.

For advanced integrations, use the API to generate unique tokens per email via Power Automate or scripts.

powershell
# eVerified - Generate Token via API
# Use this in a Power Automate flow or script

$senderEmail = "[email protected]"
$recipientEmail = "[email protected]"
$subject = "Email Subject"

$body = @{
    senderEmail = $senderEmail
    recipientEmail = $recipientEmail
    subject = $subject
} | ConvertTo-Json

$response = Invoke-RestMethod -Uri "https://everified.us/api/generate-token" \
    -Method POST \
    -ContentType "application/json" \
    -Body $body

Write-Host "Token: $($response.token)"
Write-Host "Badge URL: $($response.badgeUrl)"
Write-Host "Verify URL: $($response.verifyUrl)"
API Endpoint
POST /api/generate-token
Response
{token, badgeUrl, verifyUrl}

Use the demo tool to test badge generation and verification before rolling out.

Need help with setup?

Our integration team can walk you through the process for your specific environment.