title: e-mail with mailgun and rails not sent to all users
body: <p>I am trying to send all users an email every time a blog post is posted. Mailgun seems to deliver the email but always just to one user. I am running this in production.</p>
  
  <p>my code in the mailer is this</p>
  
  <pre><code> def new_record_notification(users)
        @users = User.all
          @users.each do |user| 
              mail to: user.email, subject: "Success! You did it."
          end
        end
      end
  </code></pre>
  
  <p><strong>pins_controller.rb</strong></p>
  
  <pre><code> # POST /pins
    # POST /pins.json
    def create
      @pin = current_admin.pins.new(pin_params)
  
      respond_to do |format|
        if @pin.save
          ModelMailer.new_record_notification(@record).deliver
          format.html { redirect_to @pin, notice: 'Pin was successfully created.' }
          format.json { render action: 'show', status: :created, location: @pin }
        else
          format.html { render action: 'new' }
          format.json { render json: @pin.errors, status: :unprocessable_entity }
        end
      end
    end
  </code></pre>