Sounds like phlegm, which could indeed be a result from smoking.
Or an active lung infection. I had one for two entire years, and I only realised it was abnormal and that it was an infection the first day I didn't cough up any phlegm.
Nasty stuff.