Questions tagged [django-postoffice]

9 questions
4
votes
2 answers

Django - testing emails with the outbox using post_office

I'm writing tests for an application that uses the django-post_office package for most of its email functionality. The default django.core.mail library contains plenty of useful tools for testing whether or not there are actually emails being sent.…
Jasper
  • 2,131
  • 6
  • 29
  • 61
1
vote
1 answer

How to disable autoescape when using django template from_string() and render()?

I am sending an email using django-post_office, which renders the subject line using django templates: subject = engine.from_string(self.template.html_content).render(self.context) Django templates automatically sets autoescape=True for security,…
alias51
  • 8,178
  • 22
  • 94
  • 166
1
vote
0 answers

Troubles using get_connection to make the connection dynamic (django-post_office) "passing get_connection to EmailMultiAlternatives"

"passing get_connection to EmailMultiAlternatives" I doing the connection dynamic for example: settings.py # EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_BACKEND = 'post_office.EmailBackend' # EMAIL_HOST =…
0
votes
1 answer

Django Post Office - How can I add a foreign key in the Email model that references the Client model?

I'm utilizing the django-post-office library in my Django project. I aim to link the library's existing Email model to my Client model, ensuring that while a single client can have multiple emails, each email can only be linked to one client. Is…
0
votes
1 answer

Django Celery task.delay() returns kombu Error Exception and Hangs on task on Runserver Using Redis

Currently using django and celery i have done my configuration and installed redis and redis is actually active i have check using the cli also when i run python manage.py shell and run a task it works perfectly but when i access the task by…
Codertjay
  • 588
  • 8
  • 13
0
votes
1 answer

Sending an Excel file from postoffice

I am trying to send a base64-encoded excel file through Django post_office lib. Here's the code that I have now An example of encoded content: body =…
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121
0
votes
1 answer

Are processes the same as concurrency in django-post_office?

I am using django-post_office to send c.10,000 emails in a single task each morning. It's possible to do this via the function send_queued(processes=1, log_level=None) in a celery task. I understand it's best practice to run celery with concurrency,…
alias51
  • 8,178
  • 22
  • 94
  • 166
0
votes
0 answers

Django - Certain Py Module doesn't work in IIS

This is my first time putting a question here. Some background, I started coding on Django this year and Python more than a year but less than 2 years so I don't much. This problem is a concern to my what I developing in at work. And my team working…
Havoc
  • 1
  • 1
0
votes
1 answer

Django post-office setup

Perhaps it is just because I've never set up an e-mail system on Django before, or maybe I'm missing it... but does anyone have any insight on how to properly configure django post-office for sending queued e-mails? I've got a mailing list of 1500…
GrantRWHumphries
  • 612
  • 7
  • 22