Comments (1)
I've run into a known issue on Python 2 with UTF-8 in the sender's name.
mailmerge_template.txt
TO: Laȝamon <[email protected]>
FROM: [email protected]
Hello world
mailmerge_database.csv
is just a dummy row to ensure that one message is rendered.
placeholder
value
mailmerge_server.conf
is a simple open server config.
[smtp_server]
host = open-smtp.example.com
port = 25
Run with Python 2
$ which mailmerge
/Users/awdeorio/src/mailmerge/env2/bin/mailmerge
$ which python
/Users/awdeorio/src/mailmerge/env2/bin/python
$ python --version
Python 2.7.17
$ mailmerge
>>> message 0
Traceback (most recent call last):
File "/Users/awdeorio/src/mailmerge/env2/bin/mailmerge", line 11, in <module>
load_entry_point('mailmerge', 'console_scripts', 'mailmerge')()
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Users/awdeorio/src/mailmerge/mailmerge/__main__.py", line 99, in cli
print(message.as_string())
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/message.py", line 155, in as_string
g.flatten(self, unixfrom=unixfrom)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/generator.py", line 118, in flatten
self._write(msg)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/generator.py", line 190, in _write
self._write_headers(msg)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/generator.py", line 217, in _write_headers
self.write(self.policy.fold(h, v))
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/_policybase.py", line 321, in fold
return self._fold(name, value, sanitize=True)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/_policybase.py", line 360, in _fold
maxlinelen=self.max_line_length))
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/header.py", line 375, in encode
formatter.feed('', lines[0], charset)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/header.py", line 462, in feed
encoded_lines = charset.header_encode_lines(string, self._maxlengths())
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/charset.py", line 362, in header_encode_lines
lines.append(encoder(header_bytes))
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/backports/email/base64mime.py", line 73, in header_encode
header_bytes = header_bytes.encode(charset)
File "/Users/awdeorio/src/mailmerge/env2/lib/python2.7/site-packages/future/types/newbytes.py", line 410, in __getattribute__
raise AttributeError("encode method has been disabled in newbytes")
AttributeError: encode method has been disabled in newbytes
from mailmerge.
Related Issues (20)
- Recipe for machine-readable messages
- FEATURE MISSING: personal attachments HOT 2
- Block list HOT 1
- Apple Mail with attachments issue (former title: UTF-8 support issue) HOT 11
- Move test dependecies to extras_require
- Debug flag
- mails limit per mail feature HOT 5
- Interactive mode
- Drop Python 2 Support HOT 5
- Change CI to GitHub Actions
- setup.py has "html5" but It has a new name "html5lib"
- Inline images not working in thunderbird? HOT 5
- Crashes on email adresses with illegal characters HOT 2
- Replace `setup.py` with `pyproject.toml`
- Support CSV files with semicolons as separators HOT 3
- Add support for 2FA OAuth authentication HOT 2
- New release on Pipy HOT 1
- No mailmerge_server.conf file in the repository HOT 2
- Load system default SSL cert
- Space at the end of the header row
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailmerge.