NLTN / StudentEnrollment

A back-end Web Service to manage course enrollment and waiting lists with functionality similar to TitanOnline.
GNU General Public License v3.0
0 stars 4 forks source link

Mail Dispatcher #73

Closed NLTN closed 11 months ago

NLTN commented 11 months ago

The email notification consumer should use the email and smtplib modules to send messages to the mail server listening on localhost port 8025. (For details, see below.)

Testing In order to test the ability to send email, use the following commands to install the aiosmtpd SMTP server and run it in debugging mode: python -m pip install aiosmtpd python -m aiosmtpd -n -d The server will listen on localhost port 8025, and the default handler will print the contents of received messages to stdout. Add process type definitions to your Procfile for aiosmtpd and each of your consumer programs, then restart Foreman with the --formation switch to start multiple competing consumers of each type. Trigger several notification messages, and verify that messages are delivered correctly to each consumer and to the mail server. Note: if you do not see output from the new processes in Foreman, Python may be buffering the standard output stream. See the Missing Output page on the Foreman wiki. You may find it easiest to add the PYTHONUNBUFFERED environment variable to your .env file.

NLTN commented 11 months ago

solved