You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gpo_reminder_sender.rb
    path of file: ./repos/identity-idp/app/services
    
    the code of the file until where you have to start completion: class GpoReminderSender
  LOCAL_DATABASE_TIMEOUT = 60_000

  def send_ema
    
  def send_emails(for_letters_sent_before)
    reminder_eligible_range =
      IdentityConfig.store.usps_confirmation_max_days.days.ago..for_letters_sent_before
    profiles_due_for_reminder(for_letters_sent_before).each do |profile|
      profile.gpo_confirmation_codes.all.each do |gpo_code|
        next if gpo_code.reminder_sent_at
        next unless reminder_eligible_range.cover?(gpo_code.created_at)

        # Only email the user if we have an eligible code.
        # Unlikely to have multiple codes since we only allow one letter/day
        # due to config setting: minimum_wait_before_another_usps_letter_in_hours
        profile.user.send_email_to_all_addresses(:gpo_reminder)
        analytics.idv_gpo_reminder_email_sent(user_id: profile.user.uuid)
        gpo_code.update(reminder_sent_at: Time.zone.now)
      end
    end
  end