Site updated at 2017-06-17 20:00:42 UTC
This commit is contained in:
parent
35ab32b13f
commit
933563f0be
808 changed files with 11423 additions and 2163 deletions
|
@ -6,13 +6,13 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>Mailgun - Home Assistant</title>
|
||||
<title>Mailgun Notify - Home Assistant</title>
|
||||
<meta name="author" content="Home Assistant">
|
||||
<meta name="description" content="Instructions how to add Mailgun mail notifications to Home Assistant.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/notify.mailgun/">
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Mailgun">
|
||||
<meta property="og:title" content="Mailgun Notify">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/notify.mailgun/">
|
||||
<meta property="og:type" content="article">
|
||||
|
@ -20,7 +20,7 @@
|
|||
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
<meta name="twitter:title" content="Mailgun">
|
||||
<meta name="twitter:title" content="Mailgun Notify">
|
||||
<meta name="twitter:description" content="Instructions how to add Mailgun mail notifications to Home Assistant.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.png">
|
||||
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
|
||||
|
@ -62,19 +62,22 @@
|
|||
<article class="page">
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
Mailgun
|
||||
Mailgun Notify
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
<p>The Mailgun notification service allows you to send emails via Mailgun’s REST API.</p>
|
||||
<p>The Mailgun notification service allows you to send emails via Mailgun’s REST API. It requires the <a href="/components/mailgun/">Mailgun component</a> to be set up.</p>
|
||||
<h2><a class="title-link" name="sample-configuration" href="#sample-configuration"></a> Sample configuration</h2>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">mailgun</span><span class="pi">:</span>
|
||||
<span class="s">domain</span><span class="pi">:</span> <span class="s">mg.example.com</span>
|
||||
<span class="s">api_key</span><span class="pi">:</span> <span class="s">token-XXXXXXXXX</span>
|
||||
<span class="s">sandbox</span><span class="pi">:</span> <span class="s">False</span>
|
||||
|
||||
<span class="s">notify</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">NOTIFIER_NAME</span>
|
||||
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">mailgun</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">mailgun</span>
|
||||
<span class="s">domain</span><span class="pi">:</span> <span class="s">YOUR_MAILGUN_DOMAIN</span>
|
||||
<span class="s">token</span><span class="pi">:</span> <span class="s">TOKEN</span>
|
||||
<span class="s">recipient</span><span class="pi">:</span> <span class="s">RECIPIENT_EMAIL</span>
|
||||
<span class="s">recipient</span><span class="pi">:</span> <span class="s">me@example.com</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>Configuration variables:</p>
|
||||
|
@ -85,18 +88,6 @@
|
|||
<li><strong>recipient</strong> (<em>Required</em>): The email address of the recipient.</li>
|
||||
<li><strong>sender</strong> (<em>Optional</em>): The sender’s email address. Defaults to <code class="highlighter-rouge">hass@DOMAIN</code>, where <code class="highlighter-rouge">DOMAIN</code> is outgoint mail domain, as defined by the <code class="highlighter-rouge">domain</code> and <code class="highlighter-rouge">sanbox</code> configuration entries.</li>
|
||||
</ul>
|
||||
<h2><a class="title-link" name="full-configuration" href="#full-configuration"></a> Full configuration</h2>
|
||||
<p>A full configuration example for the Mailgun notifier system can look like this:</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
|
||||
<span class="s">notify</span><span class="pi">:</span>
|
||||
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">mailgun</span>
|
||||
<span class="s">platform</span><span class="pi">:</span> <span class="s">mailgun</span>
|
||||
<span class="s">domain</span><span class="pi">:</span> <span class="s">mg.example.com</span>
|
||||
<span class="s">sanbox</span><span class="pi">:</span> <span class="s">False</span>
|
||||
<span class="s">token</span><span class="pi">:</span> <span class="s1">'</span><span class="s">token-XXXXXXXXX'</span>
|
||||
<span class="s">recipient</span><span class="pi">:</span> <span class="s">me@example.com</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<h2><a class="title-link" name="example-automation" href="#example-automation"></a> Example automation</h2>
|
||||
<p>The following automation reacts to an event by sending out an email with two attachments.</p>
|
||||
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example automation using Mailgun notifications</span>
|
||||
|
@ -130,6 +121,14 @@
|
|||
<div class='section'>
|
||||
This is a platform for
|
||||
<a href='/components/notify/'>the Notifications component</a>.
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class='title delta'>Related components</h1>
|
||||
<ul class='divided'>
|
||||
<li><a href='/components/mailgun/'>
|
||||
Mailgun
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Category Notifications</h1>
|
||||
|
@ -195,7 +194,10 @@
|
|||
<a href='/components/notify.mqtt/'>MQTT Notifications</a>
|
||||
</li>
|
||||
<li>
|
||||
Mailgun
|
||||
<a href='/components/mailgun/'>Mailgun</a>
|
||||
</li>
|
||||
<li>
|
||||
Mailgun Notify
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/notify.matrix/'>Matrix</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue