How can a person from Australia marry an American without meeting before getting married?

It sounds to me that it would be considered illegal, is one of them illegal, is there money exchanged? be careful.