How to start a server in test mode
Asked by
Daniel Reis
I just found out that ir.mail.server prevents e-mail to be sent if the thread has a "testing" attribute:
def send_email(...):
# Do not actually send emails in testing mode!
if getattr(
return message[
How do you start a server so that it has this attribute activated?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Daniel Reis for more information if necessary.
To post a message you must log in.