def get_recipient_data
      puts "Enter the recipient's email address:"
      while @to_address = gets.chomp
        catch :badto do
          if ValidateEmail.validate(@to_address) == true
            puts "Is the recipient's email address #{@to_address}? [y/n]:"
            while to_address_confirmation = gets.chomp
              case to_address_confirmation
              when 'y'
                return
              else
                puts "Please re-enter the recipient's email address:"
                throw :badto
              end
            end
          else
            puts "Email invalid! Please enter a valid email address:"
          end
        end
      end
    end
def get_recipient_data
      puts "Enter the recipient's email address:"
      while @to_address = gets.chomp
        catch :badto do
          if ValidateEmail.validate(@to_address) == true
            puts "Is the recipient's email address #{@to_address}? [y/n]:"
            while to_address_confirmation = gets.chomp
              case to_address_confirmation
              when 'y'
                return
              else
                puts "Please re-enter the recipient's email address:"
                throw :badto
              end
            end
          else
            puts "Email invalid! Please enter a valid email address:"
          end
        end
      end
    end
Get, validate, and confirm the recipient's email address. This data does not persist.