Voixa Consultors · corporate services in Spain
E-Commerce Act · Marketing e-mails

E-Commerce Act (LSSI): commercial communications, cookies and electronic contracts

E-Commerce Act (LSSI), articles 19 to 29: the rules governing commercial communications by electronic means and the information they must carry; the ban on unsolicited advertising by e-mail or equivalent means and its exception for existing customers (article 21); the right to withdraw consent and the use of data storage and retrieval devices (cookies) (article 22); and electronic contracts: validity, proof, applicable law, information before contracting, confirmation of acceptance and the place where the contract is concluded.

Unofficial English translation from the Spanish by Voixa Consultors S.L. Alexander Baranov is responsible for the translation. Source: Law 34/2002 of 11 July on information society services and electronic commerce, consolidated text published by the BOE, last amended 23 January 2025, BOE-A-2002-13758 ↗. Check wording, figures, dates and legal effect against the Spanish original before relying on this reading. Source snapshot: 10 November 2026. This page: Titles III and IV, articles 19 to 29. Both titles are translated in full; Titles V and VI (articles 30 to 36 bis) are not translated on these pages.

Title III. Commercial communications by electronic means

Article 19. Legal regime

1. Commercial communications and promotional offers shall be governed, in addition to this Law, by their own rules and by the commercial and advertising legislation in force.

2. In any event, Organic Law 15/1999 of 13 December on the Protection of Personal Data and its implementing rules shall apply, in particular as regards the obtaining of personal data, the information to be given to data subjects and the creation and maintenance of personal data files.

Article 20. Information required on commercial communications, promotional offers and competitions

1. Commercial communications made by electronic means must be clearly identifiable as such, and the natural or legal person on whose behalf they are made must also be clearly identifiable.

2. In the case of promotional offers, such as those including discounts, prizes and gifts, and of promotional competitions or games, subject to the corresponding authorisation, it must be ensured, in addition to compliance with the requirements laid down in the preceding paragraph and in the rules governing trade, that they are clearly identified as such and that the conditions of access and, where applicable, of participation are easily accessible and expressed clearly and unambiguously.

3. The preceding paragraphs are without prejudice to the rules issued by the Autonomous Communities with exclusive competence in consumer matters.

4. In any event, the sending of commercial communications in which the identity of the sender on whose behalf the communication is made is disguised or concealed, or which contravene this article, is prohibited, as are those inviting recipients to visit Internet pages that contravene this article.

Article 21. Prohibition of commercial communications made by e-mail or equivalent means of electronic communication

1. The sending of advertising or promotional communications by e-mail or other equivalent means of electronic communication that have not previously been requested or expressly authorised by their recipients is prohibited.

2. The preceding paragraph shall not apply where there is a prior contractual relationship, provided that the provider has lawfully obtained the recipient’s contact details and uses them to send commercial communications concerning products or services of its own undertaking that are similar to those initially contracted by the customer.

In any event, the provider must offer the recipient the possibility of objecting to the processing of their data for promotional purposes by a simple and free procedure, both at the time the data are collected and in each commercial communication addressed to them.

Where the communications have been sent by e-mail, that means must necessarily consist of the inclusion of an e-mail address or other valid electronic address at which this right may be exercised, and the sending of communications that do not include that address is prohibited.

Existing customers. Article 21.2 lets a provider e-mail its own customers about similar products or services of its own undertaking without prior request, if the contact details were obtained lawfully in a prior contractual relationship and every message offers a free and simple way to object.

Article 22. Rights of recipients of services

1. The recipient may at any time withdraw the consent given to receive commercial communications simply by notifying the sender of that wish.

To that end, service providers must set up simple and free procedures enabling recipients of services to withdraw the consent they have given. Where the communications have been sent by e-mail, that means must necessarily consist of the inclusion of an e-mail address or other valid electronic address at which this right may be exercised, and the sending of communications that do not include that address is prohibited.

They must also provide information, accessible by electronic means, on those procedures.

2. Service providers may use data storage and retrieval devices on recipients’ terminal equipment on condition that the recipients have given their consent after having been provided with clear and complete information on their use, in particular on the purposes of the data processing, in accordance with Organic Law 15/1999 of 13 December on the Protection of Personal Data.

Where technically possible and effective, the recipient’s consent to accept the processing of the data may be given by using the appropriate settings of the browser or of other applications.

The above shall not prevent any technical storage or access for the sole purpose of carrying out the transmission of a communication over an electronic communications network or, insofar as strictly necessary, for the provision of an information society service expressly requested by the recipient.

Cookies. Under article 22.2, cookies and similar devices need the user’s consent after clear and complete information on their purposes, except where they are used solely to transmit a communication or are strictly necessary for a service the user has expressly requested.

Title IV. Contracting by electronic means

Article 23. Validity and effectiveness of contracts concluded by electronic means

1. Contracts concluded by electronic means shall produce all the effects provided for by the legal order where consent and the other requirements necessary for their validity are present.

Electronic contracts shall be governed by this Title, by the Civil and Commercial Codes and by the other civil or commercial rules on contracts, in particular the rules on the protection of consumers and users and on the regulation of commercial activity.

2. For the conclusion of contracts by electronic means to be valid, prior agreement of the parties on the use of electronic means shall not be necessary.

3. Whenever the Law requires the contract or any information relating to it to be in writing, this requirement shall be deemed satisfied if the contract or the information is contained in an electronic medium.

4. This Title shall not apply to contracts relating to family and succession law.

Contracts, transactions or legal acts for which the Law requires a public document for their validity or for the production of certain effects, or which by Law require the intervention of courts, notaries, property and mercantile registrars or public authorities, shall be governed by their specific legislation.

Article 24. Proof of contracts concluded by electronic means

1. Proof of the conclusion of a contract by electronic means and of the obligations arising from it shall be subject to the general rules of the legal order.

Where contracts concluded by electronic means are electronically signed, article 3 of Law 59/2003 of 19 December on electronic signatures shall apply.

2. In any event, the electronic medium in which a contract concluded by electronic means is recorded shall be admissible in court as documentary evidence.

Article 25. Intervention of trusted third parties

(Repealed)

Article 26. Applicable law

The law applicable to electronic contracts shall be determined in accordance with the rules of private international law of the Spanish legal order, and articles 2 and 3 of this Law must be taken into consideration in applying them.

Article 27. Obligations prior to contracting

1. In addition to complying with the information requirements laid down in the legislation in force, the information society service provider that carries on electronic contracting activities shall be obliged to make available to the recipient, before the contracting procedure begins and by techniques appropriate to the means of communication used, permanently, easily and free of charge, clear, comprehensible and unambiguous information on the following points:

a) The different steps to be followed to conclude the contract.

b) Whether the provider will file the electronic document in which the contract is formalised and whether it will be accessible.

c) The technical means it makes available to identify and correct errors in the input of data, and

d) The language or languages in which the contract may be formalised.

The obligation to make available to the recipient the information referred to in the preceding subparagraph shall be deemed fulfilled if the provider includes it on its Internet page or site under the conditions set out in that subparagraph.

Where the provider specifically designs its electronic contracting services to be accessed by devices with small-format screens, the obligation laid down in this paragraph shall be deemed fulfilled when it provides, permanently, easily, directly and accurately, the Internet address at which that information is made available to the recipient.

2. The provider shall not be obliged to provide the information referred to in the preceding paragraph where:

a) Both contracting parties so agree and neither of them is a consumer, or

b) The contract has been concluded exclusively by exchange of e-mail or other equivalent electronic communication.

3. Without prejudice to the specific legislation, offers or proposals to contract made by electronic means shall be valid for the period set by the offeror or, failing that, for as long as they remain accessible to the recipients of the service.

4. Before the contracting procedure begins, the service provider must make available to the recipient the general terms and conditions to which the contract is to be subject, where applicable, in such a way that the recipient can store and reproduce them.

Article 28. Information after the conclusion of the contract

1. The offeror is obliged to confirm receipt of the acceptance to the person who made it by one of the following means:

a) Sending an acknowledgement of receipt by e-mail or other equivalent means of electronic communication to the address indicated by the accepting party, within the twenty-four hours following receipt of the acceptance, or

b) Confirming the acceptance received, by a means equivalent to that used in the contracting procedure, as soon as the accepting party has completed that procedure, provided that the confirmation can be filed by its recipient.

In cases where the obligation to confirm falls on a recipient of services, the provider shall facilitate compliance with that obligation by making available to the recipient one of the means indicated in this paragraph. This obligation shall be enforceable whether the confirmation is to be addressed to the provider itself or to another recipient.

2. The acceptance and its confirmation shall be deemed received when the parties to whom they are addressed are able to know of them.

Where receipt of the acceptance is confirmed by acknowledgement of receipt, its addressee shall be presumed able to know of it from the time it has been stored on the server on which the addressee’s e-mail account is registered, or on the device used to receive communications.

3. It shall not be necessary to confirm receipt of the acceptance of an offer where:

a) Both contracting parties so agree and neither of them is a consumer, or

b) The contract has been concluded exclusively by exchange of e-mail or other equivalent electronic communication, where these means are not used for the sole purpose of evading compliance with that obligation.

Article 29. Place where the contract is concluded

Contracts concluded by electronic means to which a consumer is a party shall be presumed to have been concluded at the place where the consumer has their habitual residence.

Electronic contracts between business operators or professionals shall, in the absence of agreement between the parties, be presumed to have been concluded at the place where the service provider is established.

Where this sits

Previous: E-Commerce Act: scope and website information duties. Next: E-Commerce Act: infringements and penalties. All translated laws: Spanish laws in English.

Related on voixa.es: Cookie consent in Spain: LSSI and AEPD; Email marketing opt-in rules in Spain; Setting up an online store in Spain.

Nothing here is advice on your own position, and this reading is not the official text. Spain publishes no official English version of this text; where the wording matters to a decision, read it against the Spanish original published in the BOE.