""But" implies a major difference in the expected result, whereas "However" informs the reader/listener to pay attention to something that may only be a slight variation of what is expected.
example,
"Not this but that" makes sense...
"It clears your blackheads "however" it can also cause skin rashes and other side effects"