From f019b4f6976c57eb7ab3359ec7b6da0aa9cdb748 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 13 Oct 2015 22:56:12 +0200 Subject: [PATCH] Move configuration details to docs --- homeassistant/components/notify/smtp.py | 50 +------------------------ 1 file changed, 2 insertions(+), 48 deletions(-) diff --git a/homeassistant/components/notify/smtp.py b/homeassistant/components/notify/smtp.py index fbddd8d1d26..758e7839e50 100644 --- a/homeassistant/components/notify/smtp.py +++ b/homeassistant/components/notify/smtp.py @@ -3,54 +3,8 @@ homeassistant.components.notify.smtp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mail (SMTP) notification service. -Configuration: - -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. +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/notify.smtp.html """ import logging import smtplib