diff --git a/README b/README index 9fbb10d2..7dee5164 100644 --- a/README +++ b/README @@ -144,7 +144,7 @@ Email Support mailtos://domain.com:465?user=userid&pass=passwordmailtos://user@hotmail.com&pass=password mailtos://userid:password@example.com?smtp=mail.example.com&from=noreply@example.com&name=no%20reply -Apprise have some email services built right into it (such as hotmail, gmail, etc) that greatly simplify the mailto:// service. +Apprise have some email services built right into it (such as yahoo, fastmail, hotmail, gmail, etc) that greatly simplify the mailto:// service. Custom Notifications -------------------- diff --git a/README.md b/README.md index 51a23cc1..4ec4a717 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ The table below identifies the services this tool supports and some example serv | [mailto://](https://github.com/caronc/apprise/wiki/Notify_email) | (TCP) 25 | mailto://userid:pass@domain.com
mailto://domain.com?user=userid&pass=password
mailto://domain.com:2525?user=userid&pass=password
mailto://user@gmail.com&pass=password
mailto://userid:password@example.com?smtp=mail.example.com&from=noreply@example.com&name=no%20reply | [mailtos//](https://github.com/caronc/apprise/wiki/Notify_email) | (TCP) 587 | mailtos://userid:pass@domain.com
mailtos://domain.com?user=userid&pass=password
mailtos://domain.com:465?user=userid&pass=password
mailtos://user@hotmail.com&pass=password
mailtos://userid:password@example.com?smtp=mail.example.com&from=noreply@example.com&name=no%20reply -Apprise have some email services built right into it (such as hotmail, gmail, etc) that greatly simplify the mailto:// service. See more details [here](https://github.com/caronc/apprise/wiki/Notify_email). +Apprise have some email services built right into it (such as yahoo, fastmail, hotmail, gmail, etc) that greatly simplify the mailto:// service. See more details [here](https://github.com/caronc/apprise/wiki/Notify_email). ### Custom Notifications | Post Method | Service ID | Default Port | Example Syntax | diff --git a/apprise/plugins/NotifyDiscord.py b/apprise/plugins/NotifyDiscord.py index 7b41bd0d..42f59916 100644 --- a/apprise/plugins/NotifyDiscord.py +++ b/apprise/plugins/NotifyDiscord.py @@ -59,7 +59,7 @@ class NotifyDiscord(NotifyBase): secure_protocol = 'discord' # A URL that takes you to the setup/help of the specific protocol - setup_url = 'https://github.com/caronc/apprise/wiki/Notify_discored' + setup_url = 'https://github.com/caronc/apprise/wiki/Notify_discord' # Discord Webhook notify_url = 'https://discordapp.com/api/webhooks' diff --git a/apprise/plugins/NotifyEmail.py b/apprise/plugins/NotifyEmail.py index 81c237ee..d930d724 100644 --- a/apprise/plugins/NotifyEmail.py +++ b/apprise/plugins/NotifyEmail.py @@ -40,6 +40,18 @@ class WebBaseLogin(object): USERID = 'UserID' +# Secure Email Modes +class SecureMailMode(object): + SSL = "ssl" + STARTTLS = "starttls" + + +# Define all of the secure modes (used during validation) +SECURE_MODES = ( + SecureMailMode.SSL, + SecureMailMode.STARTTLS, +) + # To attempt to make this script stupid proof, if we detect an email address # that is part of the this table, we can pre-use a lot more defaults if they # aren't otherwise specified on the users input. @@ -54,6 +66,7 @@ WEBBASE_LOOKUP_TABLE = ( 'port': 587, 'smtp_host': 'smtp.gmail.com', 'secure': True, + 'secure_mode': SecureMailMode.STARTTLS, 'login_type': (WebBaseLogin.EMAIL, ) }, ), @@ -68,6 +81,7 @@ WEBBASE_LOOKUP_TABLE = ( 'port': 465, 'smtp_host': 'secure.emailsrvr.com', 'secure': True, + 'secure_mode': SecureMailMode.STARTTLS, 'login_type': (WebBaseLogin.EMAIL, ) }, ), @@ -82,6 +96,7 @@ WEBBASE_LOOKUP_TABLE = ( 'port': 587, 'smtp_host': 'smtp.live.com', 'secure': True, + 'secure_mode': SecureMailMode.STARTTLS, 'login_type': (WebBaseLogin.EMAIL, ) }, ), @@ -96,6 +111,60 @@ WEBBASE_LOOKUP_TABLE = ( 'port': 465, 'smtp_host': 'smtp.mail.yahoo.com', 'secure': True, + 'secure_mode': SecureMailMode.STARTTLS, + 'login_type': (WebBaseLogin.EMAIL, ) + }, + ), + + # Fast Mail (Series 1) + ( + 'Fast Mail', + re.compile( + r'^((?P