medmunds
afe6f4030e
Change default SMTP_SECURE to "tls"
...
Secure by default. Also try to minimize configuration errors.
(Many ESPs/ISPs require STARTTLS, and most support it.)
4 years ago
medmunds
6e49c4ffe0
Prefer Python to curl when both available
4 years ago
medmunds
28d9f00610
Use email.policy.default in Python 3 implementation
...
Improves standards compatibility and utf-8 handling
in Python 3.3-3.8. (email.policy.default becomes the
default in Python 3.9.)
4 years ago
medmunds
8f688e5e13
Add Date email header in Python implementation
4 years ago
medmunds
5a182eddbf
Clarify _readaccountconf_mutable_default
4 years ago
medmunds
4b615cb3a9
Clean email headers and warn on unsupported address format
...
Just in case, make sure CR or NL don't end up in
an email header.
4 years ago
medmunds
b36247a091
Implement _rfc2822_date helper
4 years ago
medmunds
6e77756d6a
Rework read/save config to not save default values
...
Add and use _readaccountconf_mutable_default and
_saveaccountconf_mutable_default helpers to capture
common default value handling.
New approach also eliminates need for separate
underscore-prefixed version of each conf var.
4 years ago
medmunds
6ff75f9a9f
Use PROJECT_NAME and VER for X-Mailer header
...
Also add X-Mailer header to Python version
4 years ago
medmunds
ffe7ef4764
More than one blank line is an abomination, apparently
...
I will not try to use whitespace to group code visually
4 years ago
medmunds
30dae70e2b
Implement curl version of smtp notify-hook
4 years ago
medmunds
557a747d55
Prep for curl or Python; clean up SMTP_* variable usage
4 years ago
medmunds
fe273b3829
Add instructions for reporting bugs
4 years ago
medmunds
2439bb30e8
Only save config if send is successful
4 years ago
medmunds
e48b6bd22d
Make shfmt happy
...
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
4 years ago
medmunds
1de9ffacb0
Implement smtp notify hook
...
Support notifications via direct SMTP server connection.
Uses Python (2.7.x or 3.4+) to communicate with SMTP server.
4 years ago
neil
b50e701cae
Add notification ( #2241 )
...
* add cron notify
* fix format
* fix format
6 years ago