Closed Bug 481386 Opened 16 years ago Closed 15 years ago

Do not send emails from dev copies of AMO

Categories

(addons.mozilla.org Graveyard :: Code Quality, enhancement, P4)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: wenzel, Assigned: clouserw)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

I just sent out an erroneous email to a former Mozilla intern while testing. When in development mode, I think AMO should not actually send out emails. Otherwise, testing with production data can way too easily spam users. I'll attach a patch that should prevent this, yet allow to debug mail sending on a debug level >= 2.
Attachment #365412 - Flags: review?(clouserw)
Attachment #365412 - Flags: review?(clouserw) → review+
Comment on attachment 365412 [details] [diff] [review] do not send emails in DEV mode This seems like the kind of thing that will be forgotten and become frustrating for devs in the future when mail doesn't show up. I wish we had a good way of notifying the dev.
(In reply to comment #1) > (From update of attachment 365412 [details] [diff] [review]) > This seems like the kind of thing that will be forgotten and become frustrating > for devs in the future when mail doesn't show up. I wish we had a good way of > notifying the dev. You have a point there. What we could do is add a constant called DEV_EMAIL and if it's set we send all emails there instead of to the original owners, and we mention the real recipients either in the first line of the email or as part of the subject (just thinking out loud)... How does that sound?
Works for me. We could make it default to the email address for whoever is logged in.
Comment on attachment 365412 [details] [diff] [review] do not send emails in DEV mode Good idea, I will write something in that direction.
Attachment #365412 - Flags: review+ → review-
Assignee: nobody → fwenzel
Assignee: fwenzel → nobody
Component: Administration → Code Quality
Priority: -- → P4
QA Contact: administration → code-quality
Target Milestone: --- → Future
clouserw just mentioned: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' as a fix for this in Zamboni. Woot.
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: