def get_sender_gmail
      puts "Enter your gmail address:"
      while @from_address = gets.chomp
        catch :badfrom do
          if ValidateEmail.validate(@from_address) == true
            puts "Is your email address #{@from_address}? [y/n]:"
            while address_confirmation = gets.chomp
              case address_confirmation
              when 'y'
                return
              else
                puts "Please re-enter your gmail address:"
                throw :badfrom
              end
            end
          else
            puts "Email invalid! Please enter a valid email address:"
          end
        end
      end
    end
def get_sender_gmail
      puts "Enter your gmail address:"
      while @from_address = gets.chomp
        catch :badfrom do
          if ValidateEmail.validate(@from_address) == true
            puts "Is your email address #{@from_address}? [y/n]:"
            while address_confirmation = gets.chomp
              case address_confirmation
              when 'y'
                return
              else
                puts "Please re-enter your gmail address:"
                throw :badfrom
              end
            end
          else
            puts "Email invalid! Please enter a valid email address:"
          end
        end
      end
    end
Get, validate, and confirm user's email address