Advice needed: A beginner programmer wants to develop simple 220V relay on/off

there are many videos and instructables about connecting a cell phone to turn a switch on and off.

it is far faster to copy someone else's work and then take credit for it
that is a sign of a corporate manager

It take far more skil and education to understand what you are doing and making it happen.
that is a sign of an engineer.