Yes, you can vote from another EU country by mail or in your foreign representation (embassies and consulates).

Voters who live abroad permanently need to be registered in the Consular Registration in the Absent Resident Electoral Roll (CERA) for Spaniards living in another country . To register, fill in the application form (sent by the Electoral Census Office or downloaded from the website of the Ministry of Foreign Affairs or the Ministry of the Interior) to the Provincial Electoral Roll Office (Delegación Provincial de la Oficina del Censo Electoral) where you are registered, no later than 25 days following the call for elections.

Voting by post is possible by

-registered mail to the consular post or consular section of the diplomatic mission where you are registered between the 30th of April and the 21st of May

It is also possible to personally deposit the ballot paper in the ballot box between the 22nd and 24th of May (both inclusive) at the consular post or consular office where you are registered or at places empowered to that end.

Voters who are temporarily abroad need to meet the following requirements:

1) Are temporarily outside once the electoral process has been called and expect to remain abroad until the day of the election,

2) Are registered in the consular registration register as non-residents (ERTA vote).

They must request the documentation necessary to vote to the corresponding Provincial Delegation of the Electoral Census Office, no later than 25 days following the call for elections. The form is available at the Consular Offices or the Consular Sections of the Embassy, or for download on the website of the Ministry of Foreign Affairs. The completed form must be submitted in person at the Consular Office or the Consular Section of the Embassy. Once the constituent receives the voting documentation (at their home), they must sent the voting envelope by certified mail no later than the third day prior to the holding of the election.

See more on: Participate in elections (Gobierno de España. Ministerio de Asuntos Exteriores, Unión Europea y Cooperación).

Voto desde fuera de España (Gobierno de España. Ministerio del Interior).