Sarah Harrison, Ofgem's senior partner in charge of enforcement, said:
Ofgem has put in place protections for consumers so they can get a fair warning if their supplier puts up prices and time to shop around for a better deal.
E.On has accepted it failed to meet these protections. Today's announcement that E.On will compensate customers is a positive step by the company to put right their mistakes and is welcome.
More top news
Everything you need to know about the Zika virus - from how it spreads to travel advice.
Tottenham have reached an agreement with the Football Association to play their European fixtures at Wembley next season.
The creatures feed on cherry trees, hawthorn and blackthorn and built the web to protect themselves from predators.