Skip to content

Non-intuituve behavior: Sending an email with no recipients reports "Success" #37

@sheepman4267

Description

@sheepman4267

As a beginner to this library, I managed to miss this in the docs:

        self.to_emails = [user.email]  # set list of emails to send to

Then, sending the email, I was confused as to why the email didn't go through. I finally looked in the admin and discovered a blank recipients list, while the given EmailNotification object also had its status set to "Success". It would be more intuitive (to me, at least) for this case to raise an exception or at least report a failure in its status field, as sending the message definitely didn't succeed.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions