Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DebugMailer doesn't use from_settings() to initialize with pyramid_mailer.debug #66

Open
rach opened this issue May 1, 2015 · 6 comments

Comments

@rach
Copy link

rach commented May 1, 2015

Is when including pyramid.debug should also look at the settings? Otherwise the method from_settings() on the DebugMailer seems unused and we cannot configure the directory with the mail.top_level_directory

https://github.com/Pylons/pyramid_mailer/blob/5545c41830af5d56c77df2f0e4ba50bc669e2aae/pyramid_mailer/debug.py

I can provide a PR if you agree on the change.

@mmerickel
Copy link
Member

Sounds like a good change.

@navi7
Copy link

navi7 commented May 2, 2015

Just discovered the same.

+1 for adding the change.

@NucleaPeon
Copy link

This issue affects me.
DebugMailer tries to use a directory that doesn't exist and that I don't have permissions to create to.

Currently the only way to change which directory it uses is to modify the source code directly as I do not have direct control over which directory my project is sitting in due to its deployment configuration.

@stevepiercy
Copy link
Member

PRs are gladly accepted and are more effective than +1s and me-toos.

@tseaver
Copy link
Member

tseaver commented Oct 28, 2015

@rach please do provide a PR.

I would imaging that tests for the feature will need to do some tempfile.mkdtemp jiggery-pokery for portability. See: https://github.com/Pylons/pyramid_mailer/blob/master/pyramid_mailer/tests/test_mailer.py#L14 for a start.

@rach
Copy link
Author

rach commented Oct 29, 2015

Sorry for the lack of answers, I missed the previous github messages.
I will try to fix that on this Friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants