In which case the boiler is likely to be functioning correctly.
As stated above, the flow rate is normally quoted at a 35°c rise.
At these times of year, the incoming water from the mains is potentially close to 5°c, giving you your 40°c.
The only way to raise this is to slow down the flow rate...