Hi.
Normally a port pin can just source some few mA, it´s intended to drive logic circuits.
If you want to drive something more demanding you should use a driver circuit with at least a transistor.
I normally use some ULN-driver, FET or a standard bipolar transistor.
If you connect an inductive load without protection you can easily damage the controller because of the overvoltage induced then you cut the power to the inductance, so please take care.
Br. Gunde