Dear Sir or Madam is a more formal way of addressing a letter when the recipient is unknown. To Whom It May Concern is a more general salutation that can be used when the recipient is unknown or when writing to an organization.