Every phone in Portugal received a text warning of the extreme risk of wildfires as the country braces for its third heatwave of the summer.