title: recipient_list send mail just to the first address in the list
body: <p>I´m using signals to send mails to the users depending of some actions. In one of my signals I need to send the same mail to multiple users, my signal use <code>post_save</code> so for the parameter <code>[recipient_list]</code> I use this <code>instance.email_list</code> email_list is where I store the list of email addresses to send the mail, they are stored in this format <code>user1@mail.com, user2@mail.com, user3@mail.com</code>.</p>
  
  <p>To send the emails I use <code>EMAIL_HOST = 'smtp.gmail.com'</code> the problem is that the only user who recive the email is the first one in the list. So I 'log in' in the gmail account to check the send emails section and actually in the "to" area of the email shows that was send to all the users in the list but the emails never arrive just for the first email address in the list.</p>
  
  <p>I read that if google detect that the account sends a lot of messages could be blocked but only send like 5 emails at the same time and when I'm in the account never shows me some alert or something.</p>
  
  <p>So the problem is how I send the emails or maybe some bad configuration of the gmail account?</p>
  
  <p>Any help is really appreciated.</p>
  
  <p>Sorry for my bad grammar.</p>
  
  <p><strong>EDIT:</strong> Here's my code.</p>
  
  <pre><code>forms.py
  
  class MyForm(forms.Form):
      userslist = forms.ModelChoiceField(queryset = User.objects.filter(here goes my condition to show the users), empty_label='List of users', label='Users', required=False)
      emailaddress = forms.CharField(max_length=1000, label='Send to:', required=False)
      comment = forms.CharField(widget=CKEditorUploadingWidget(), label="Comment:")
  </code></pre>
  
  <p>That form display a list of users to select the email address in the field emailaddress store the values. This is my Ajax to bring the email address:</p>
  
  <pre><code>views.py
  
  class mails(TemplateView):
      def get(self, request, *args, **kwargs):
          id_user = request.GET['id']
          us = User.objects.filter(id = id_user)
          data = serializers.serialize('json', us, fields=('email'))
          return HttpResponse(data, content_type='application/json')
  </code></pre>
  
  <p>And here's the <code>&lt;script&gt;</code> I use to populate the emailaddres field:</p>
  
  <pre><code>&lt;script&gt;
      $('#id_userlist').on('change', concatenate);
      function concatenate() {
          var id = $(this).val();
          $.ajax({
              data: { 'id': id },
              url: '/the_url_to_get_data/',
              type: 'get',
              success: function (data) {
                  var mail = ""
                  for (var i = 0; i &lt; data.length; i++) {
                      mail += data[i].fields.email;
                  }
                  var orig = $('#id_emailaddress').val();
                  $('#id_emailaddress').val(orig + mail + ',');
              }
          })
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>The signal I use to send the mail is this:</p>
  
  <pre><code>@receiver(post_save, sender=ModelOfMyForm, dispatch_uid='mails_signal')
  def mails_signal(sender, instance, **kwargs):
      if kwargs.get('created', False):
          if instance.emailaddress:
              #Here goes the code for the subject, plane_message,
              #from_email and template_message.
              send_mail(subject, plane_message, from_email, [instance.emailaddress], fail_silently=False, html_message=template_message)
  </code></pre>
  
  <p>So if I select 4 users the info is save in this way in the database:</p>
  
  <p><a href="https://i.stack.imgur.com/ckBjw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ckBjw.jpg" alt="data info"></a></p>
  
  <p>Then I 'log in' in the account to check the 'Sent Mail' section and check the detail of the mail and shows that was send to the 4 users but the only user who recibe the mail was the first in the list.</p>
  
  <p><a href="https://i.stack.imgur.com/RXVoi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RXVoi.jpg" alt="enter image description here"></a></p>