In the present study, the preparation of nanocapsules using the coaxial electrospraying method was investigated. Poly (styrene-acrylonitrile) (SAN) was used as shell material and coconut oil-based alkyd resin (CAR) as a core. Chemical structure, thermal stability, and morphology of nanocapsules were characterized by Fourier transform infrared (FTIR) spectroscopy, thermal gravimetric analysis (TGA), field emission scanning electron microscopy (FE-SEM), respectively. In addition, the formation of the core-shell structure was approved by transmission electron microscopy (TEM) and FE-SEM micrographs of the fractured nanocapsules. Furthermore, the Differential scanning calorimetry tests (DSC) were carried out to investigate the reactivity of released healing agent from nanocapsules. The prepared nanocapsules were then incorporated into the epoxy resins and applied on the surfaces of the steel panels. The effect of capsule incorporation on the properties of the coating was evaluated. The self-healing performance of the coatings in the salty and acidic media was also assessed. The FTIR results revealed the presence of both shell and core in the prepared nanocapsules and proved no reaction between them. The morphological studies confirmed that the electrosprayed nanocapsules' mean diameter was 708±252 nm with the average shell thickness of 82 nm. The TGA test demonstrated the thermal stability of nanocapsules up to 270 ?C, while the DSC results revealed a successful reaction between CAR and epoxy resin, especially in the acidic media. Electrochemical impedance spectroscopy (EIS) test results demonstrated the best self-healing performance achieved for the 2 wt.% and 1wt.% nanocapsules incorporation in the NaCl, and HCl solution, respectively