def test_send_mail(db):
    send_mail('Subject', 'Message', to=['user@example.com'])

    assert len(mail.outbox) == 1
    assert mail.outbox[0].subject == '[example.com] Subject'
    assert mail.outbox[0].body == 'Message'
    assert mail.outbox[0].from_email == settings.DEFAULT_FROM_EMAIL
    assert mail.outbox[0].to == ['user@example.com']
    assert mail.outbox[0].cc == []
    assert mail.outbox[0].bcc == []
    assert mail.outbox[0].attachments == []