This answer is
not correct. These are the conditions needed to form esters by a SN2
mechanism and indeed you will get some ester by this method. In general,
secondary substrates will yield mostly the E2 product, in this case propene.
There is a better selection that give excellent yields.