Using an infinitive phrase:
My friends recommended that I should give up smoking.
My friends recommended me to give up smoking.
Using an infinitive phrase:
My friends recommended that I should give up smoking.
My friends recommended me to give up smoking.