If you are passport holder of Canada, USA or any EU country you do not require visa to Spain.
Please, make sure that your passport is valid for more than 6 months period from the date of your entry into Spain.
Otherwise you must apply in person for visa to Spain. Please, contact your nearest Spain embassy or consulate.