Smokers are at a higher risk of developing pneumonia
damages the defenses of the lung against bacteria. Presence of greenish yellow phlegm with traces of blood indicates the presence of infection in your lungs, more so, if you are also having other symptoms like fever
. Please see your doctor again so that he can thoroughly examine you. Also consider quitting smoking or at least cut down as much as you can.
Hope this helps. Best wishes.