A man received a suspended prison sentence and football banning order for sending racist messages to England defender Jess Carter during the Women's Euros.