From f84223f4730cd171d25c980b43f07d89950f46bd Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 26 Nov 2019 10:42:41 +1300 Subject: [PATCH] README.devel: mention python SMTP server For debugging email functionality, python's SMTP test server is useful, so add brief instructions on how to use it for convenience. Signed-off-by: Paul Eggleton --- README.devel | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.devel b/README.devel index ffec289..b535304 100644 --- a/README.devel +++ b/README.devel @@ -125,6 +125,24 @@ Configuration and running: layerindex/tools/import_layer.py script or through the admin interface. +SMTP test server +---------------- + +If you want to test email functionality (e.g. for password reset, layer +submission or other notifications) you can do so without dealing with actual +emails being sent by running python's built-in SMTP test server (in a +separate shell session): + +python3 -m smtpd -n -c DebuggingServer localhost:1025 + +This will stay running and print out any email that is sent to it. All you +need to do then is edit settings.py and set it to point to the server: + +EMAIL_HOST = 'localhost' +EMAIL_PORT = 1025 + + + Updating OpenEmbedded data --------------------------