Apple CEO Tim Cook sent an email to his employees Wednesday condemning racism and President Trump's response to the protests in Charlottesville, Virginia. Cook also told staffers that Apple would make $1 million donations to two civil rights groups, according to an email obtained by BuzzFeed News.

"Hate is a cancer, and left unchecked it destroys everything in its path," Cook wrote. "Its scars last generations. History has taught us this time and time again, both in the United States and countries around the world."

Cook called for unity among Apple workers regardless of their political views, and came out against remarks Trump made during a Tuesday press conference equating far-right hate groups with the people protesting them. The president's statements came three days after violence in Charlottesville resulted in the death of 32-year-old Heather Heyer, who was demonstrating against the rally of white nationalists, and injuries to 19 others.

"I disagree with the president and others who believe that there is a moral equivalence between white supremacists and Nazis, and those who oppose them by standing up for human rights," Cook wrote. "Equating the two runs counter to our ideals as Americans."

Cook said Apple would donate $1 million to both the Southern Poverty Law Center and the Anti-Defamation League. The company also will match employee donations to those and other anti-hate groups two-for-one until September 30, and will enable Apple users to donate to the Southern Poverty Law Center through iTunes.

The tech giant also cut off Apple Pay support for three websites that sell Nazi and white nationalist apparel, joining a host of other businesses that clamped down on neo-Nazi groups following the violence in Charlottesville. On Wednesday, Twitter suspended accounts associated with Neo-Nazi website The Daily Stormer, and Facebook, Google, and other companies have taken similar actions. Additionally, Spotify removed several white supremacist acts that had been flagged as "hate bands" by the Southern Poverty Law Center three years ago.