Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
lettuce
Commits
8cf685be
Commit
8cf685be
authored
Oct 02, 2013
by
Mike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lettuce smtp mail queue documentation added
parent
dac57b6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
specs/recipes/django-lxml.md
+34
-0
No files found.
specs/recipes/django-lxml.md
View file @
8cf685be
...
@@ -215,6 +215,40 @@ Example:
...
@@ -215,6 +215,40 @@ Example:
python manage.py harvest --no-server
python manage.py harvest --no-server
python manage.py harvest -S
python manage.py harvest -S
Notice that if you have tests with some email checks they wont pass because
email queue should be in the same process with django server. To bypass this
limitation you can use --smtp-queue option.
Example:
Define lettuce smtp server host & port in
`settings.py`
:
LETTUCE_SMTP_QUEUE_HOST
LETTUCE_SMTP_QUEUE_PORT
This is where lettuce smtp server will be listen to for incoming email messages.
Configure django application smtp settings accordingly for sending emails
to lettuce smtp server:
EMAIL_HOST # = LETTUCE_SMTP_QUEUE_HOST
EMAIL_PORT # = LETTUCE_SMTP_QUEUE_PORT
EMAIL_HOST_USER = None
EMAIL_HOST_PASSWORD = None
Configured this way django application will send email messages to lettuce email queue.
Run django application
Run lettuce
./manage.py harvest --no-server --smtp-queue
Notice that this plugin use
`lettuce.django.email.queue`
, but as it parse incoming
smtp emails to django
`EmailMessage`
, there can be some differences
in emails (emails usually won't be fully equal in all headers, attachments, etc,
but it works ok for simple cases like checking body and common headers).
### running the HTTP server in other port than 8000
### running the HTTP server in other port than 8000
If you face the problem of having lettuce running on port 8000, you can
If you face the problem of having lettuce running on port 8000, you can
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment