The prolific letter-writing former Iranian president, who has before corresponded with Bush and Obama, sends a particularly long missive to the current US president, striking a somewhat conciliatory tone while applauding immigration to America.

Associated Press|Published: 26.02.17 , 20:15

TEHRAN, Iran (AP) — Iran's former hard-line President Mahmoud Ahmadinejad sent a letter Sunday to President Donald Trump, striking a somewhat conciliatory tone while applauding immigration to America and saying it shows "the contemporary US belongs to all nations."

It isn't the first dispatch sent by Ahmadinejad, who has counted US Presidents George W. Bush and Barack Obama among his pen pals.

But this letter, weighing in at over 3,500 words, comes as criticism of Trump over his travel ban affecting seven Muslim-majority countries including Iran mounts in Tehran. It also may serve to burnish Ahmadinejad's image domestically after the nation's Supreme Leader warned him not to run in Iran's upcoming May presidential election.

In the letter, published by Iranian media outlets, Ahmadinejad noted Trump won the election while he "truthfully described the US political system and electoral structure as corrupt."

Ahmadinejad and Trump (Photos: MCT, EPA)

Ahmadinejad decried US "dominance" over the United Nations, as well as American meddling in the world that has brought "insecurity, war, division, killing and (the) displacement of nations."

He also acknowledged the some 1 million people of Iranian descent living in America, saying that US policies should "value respect toward the diversity of nations and races."

"In other words, the contemporary US belongs to all nations, including the natives of the land," he wrote. "No one may consider themselves the owner and view others as guests or immigrants."

A judge later blocked Trump's travel ban, and an appeals court refused to reinstate it. Trump has promised to issue a revised order soon, saying it's necessary to keep America safe.

Entirely missing from the letter was any reference to Iran's nuclear program. Under Ahmadinejad's presidency, Iran found itself heavily sanctioned over the program as Western governments feared it could lead to the Islamic Republic building atomic weapons. Iran has long maintained its program was for peaceful purposes.

Iran under current President Hassan Rouhani struck a nuclear deal with world powers, including the Obama administration, to limit its enrichment of uranium in exchange for the lifting of some sanctions. Trump campaigned promising to renegotiate the deal, without offering specifics.

Ahmadinejad gave the letter to the Swiss Embassy in Tehran, which represents US interests in Iran. The embassy declined to comment Sunday while American officials could not be immediately reached.

The letter comes ahead of Iran's presidential election, in which Rouhani is widely expected to seek a second four-year term. While allies of Ahmadinejad are expected to run, he himself won't after Supreme Leader Ayatollah Ali Khamenei warned him in September his candidacy would bring about a "polarized situation" that would be "harmful for the county."

Ahmadinejad's popularity in Iran remains in question. During his tenure, he personally questioned the scale of the Holocaust and predicted the demise of Israel. His disputed 2009 re-election saw widespread protests and violence. Two of his former vice presidents went to prison for corruption.

But Ahmadinejad offered Trump his own warning about how quickly time passes for leaders.

"Four years is a long period, but it ends quickly," he wrote. "The opportunity needs to be valued, and all its moments need to be used in the best way."