mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Move configuration details to docs
This commit is contained in:
parent
e353dae3a6
commit
f019b4f697
@ -3,54 +3,8 @@ homeassistant.components.notify.smtp
|
|||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
Mail (SMTP) notification service.
|
Mail (SMTP) notification service.
|
||||||
|
|
||||||
Configuration:
|
For more details about this platform, please refer to the documentation at
|
||||||
|
https://home-assistant.io/components/notify.smtp.html
|
||||||
To use the smtp notifier you will need to add something like the following
|
|
||||||
to your configuration.yaml file.
|
|
||||||
|
|
||||||
notify:
|
|
||||||
platform: smtp
|
|
||||||
server: MAIL_SERVER
|
|
||||||
port: YOUR_SMTP_PORT
|
|
||||||
sender: SENDER_EMAIL_ADDRESS
|
|
||||||
starttls: 1 or 0
|
|
||||||
username: YOUR_SMTP_USERNAME
|
|
||||||
password: YOUR_SMTP_PASSWORD
|
|
||||||
recipient: YOUR_RECIPIENT
|
|
||||||
|
|
||||||
Variables:
|
|
||||||
|
|
||||||
server
|
|
||||||
*Required
|
|
||||||
SMTP server which is used to end the notifications. For Google Mail, eg.
|
|
||||||
smtp.gmail.com. Keep in mind that Google has some extra layers of protection
|
|
||||||
which need special attention (Hint: 'Less secure apps').
|
|
||||||
|
|
||||||
port
|
|
||||||
*Required
|
|
||||||
The port that the SMTP server is using, eg. 587 for Google Mail and STARTTLS
|
|
||||||
or 465/993 depending on your SMTP servers.
|
|
||||||
|
|
||||||
sender
|
|
||||||
*Required
|
|
||||||
E-Mail address of the sender.
|
|
||||||
|
|
||||||
starttls
|
|
||||||
*Optional
|
|
||||||
Enables STARTTLS, eg. 1 or 0.
|
|
||||||
|
|
||||||
username
|
|
||||||
*Required
|
|
||||||
Username for the SMTP account.
|
|
||||||
|
|
||||||
password
|
|
||||||
*Required
|
|
||||||
Password for the SMTP server that belongs to the given username. If the
|
|
||||||
password contains a colon it need to be wrapped in apostrophes.
|
|
||||||
|
|
||||||
recipient
|
|
||||||
*Required
|
|
||||||
Recipient of the notification.
|
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
import smtplib
|
import smtplib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user