← Back to team overview

openerp-india team mailing list archive

[Bug 1255611] Re: Emails are sent "per recipient" instead of "per message"

 

As Dave said, this is indeed considered a feature :-) The fact that one or several emails are being sent is actually an implementation detail you should not care about, and is a consequence of the fact that each email is slightly personalized. The From/To headers are correctly set for each individual recipient (a single mail would force use to hide them completely or to incorrectly broadcast the emails of all followers, plus risk getting invalid "Reply all" effects). 
And when the `portal` module is installed, this also permits adding a personalized link at the bottom of each email, letting the recipient either signup for a personal portal account using a unique invitation link connection to their existing "customer data", or directly open the corresponding record if they have previously signed up.

The fact that your mail server throttles emails is a configuration
detail in your installation, and it's definitely recommended to fix that
because OpenERP is not a true MTA/MUA: it expects a working SMTP server
at all times. If you want that local SMTP server to be in charge of
queuing the mails to comply with a maximum outgoing email rate, that's
up to you.

Note that the outgoing messages are queued on the OpenERP side in the
mail.mail model, but OpenERP does not currently distinguish a 4xx
temporary failure from a 5xx permanent one, so it will mark them as
permanently failed in all cases. There's a retry button if you go to the
list of failed deliveries (See /Settings/Technical/Email/Emails), but
that requires a manual action for each message, otherwise the queue
runner will never retry them.

As a workaround for your particular situation you might want to add a
scheduled job inside OpenERP to force the retry of all failed deliveries
automatically.

Hope this helps,

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1255611

Title:
  Emails are sent "per recipient" instead of "per message"

Status in OpenERP Addons (modules):
  Won't Fix

Bug description:
   1) Steps to reproduce the issue you have observed

      A project issue with multiple followers exist. Add a message
  ("send message") to the project issue.

   2) The result you observed

      Multiple emails are sent, one per recipient (= followers minus the
  current user). Because my email server throttles the incoming emails,
  only half of the recipients actually got the message. There was no
  error message in the web user interface, however, and the message is
  shown as if it were sent to all followers.

   3) The result you expected

      Only one email should be sent out. Distributing the email to
  different addresses is a task of the MTA (email server), not the
  client.

   4) The platform you are using (and browser version, if relevant)

      Debian, MTA is a Microsoft product, AFAIK.

   5) The OpenERP version you are using

      7.0-20131126-00264

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1255611/+subscriptions