mailer: remove manual message ids

pull/73/head
Christian Merten 1 year ago
parent 8327b0a3b9
commit 8633c41b8a
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -151,8 +151,6 @@ class Message(CommonModel):
# remove any underscores from subject to prevent Arne from using # remove any underscores from subject to prevent Arne from using
# terrible looking underscores in subjects # terrible looking underscores in subjects
self.subject = self.subject.replace('_', ' ') self.subject = self.subject.replace('_', ' ')
# generate message id
message_id = "<{pk}@{domain}>".format(pk=self.pk, domain=settings.DOMAIN)
# reply to addresses # reply to addresses
reply_to = [jl.association_email for jl in self.reply_to.all()] reply_to = [jl.association_email for jl in self.reply_to.all()]
reply_to.extend([ml.email for ml in self.reply_to_email_address.all()]) reply_to.extend([ml.email for ml in self.reply_to_email_address.all()])
@ -165,7 +163,6 @@ class Message(CommonModel):
success = send(self.subject, get_content(self.content, registration_complete=True), success = send(self.subject, get_content(self.content, registration_complete=True),
from_addr, from_addr,
emails, emails,
message_id=message_id,
attachments=attach, attachments=attach,
reply_to=reply_to) reply_to=reply_to)
if success == SENT or success == PARTLY_SENT: if success == SENT or success == PARTLY_SENT:

Loading…
Cancel
Save