"I regret that president Macron seeks to take advantage of what is a domestic Brazilian issue and of other Amazonian countries for personal political gain," Bolsonaro tweeted.
The letters said America's contribution to the NATO alliance is "no longer sustainable."
It is the first time the president is said to have thrown candy at another world leader.
Trump reportedly told French President Emmanuel Macron that "all the terrorists are in Paris."
Many in Canada are boycotting U.S. products after Donald Trump's recent tariffs and remarks.
President Donald Trump has rejected G7 allies while speaking warmly of North Korean dictator Kim Jong Un.
But the president denied the summit had been riddled with tensions.
Melania Trump has not traveled with the president to a G7 summit in Canada.
The president will miss the G-7 group photo and agreement signing.
Trump is heading into the G7 summit, having started a Twitter spat with Canada and France, brandishing tariffs on them and other U.S. allies.
The first lady recently underwent medical treatment.
Jean-Claude Juncker has called for the EU to collaborate more on defense projects.
Russia's deputy foreign minister accused the G7 of being "contaminated with the virus of their self importance."
The German Chancellor was unimpressed with Trump's failure to commit to the Paris climate deal during the G7 summit.
The summit of Group of Seven wealthy nations pitted Trump against the leaders of Germany, France, Britain, Italy, Canada and Japan on several issues.
Mount Etna erupted 22 times already this month.