> ## Documentation Index
> Fetch the complete documentation index at: https://docs.titane-intelligence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Envoyer une sélection personnalisée

> Une campagne Mailchimp où chaque contact reçoit les produits que Titane a choisis pour lui.

export const PRODUITS = {
  serum: {
    nom: "Sérum rééquilibrant niacinamide",
    prix: "24,90 €",
    image: "/images/pure/serum.jpg"
  },
  gel: {
    nom: "Gel nettoyant doux",
    prix: "14,90 €",
    image: "/images/pure/gel-nettoyant.jpg"
  },
  solaire: {
    nom: "Lait frais solaire SPF 50",
    prix: "19,90 €",
    image: "/images/pure/solaire.jpg"
  },
  baume: {
    nom: "Baume lèvres repulpant",
    prix: "8,90 €",
    image: "/images/pure/baume-levres.jpg"
  },
  huile: {
    nom: "Huile corps nourrissante",
    prix: "22,90 €",
    image: "/images/pure/huile-corps.jpg"
  },
  dentifrice: {
    nom: "Dentifrice éclat minéral",
    prix: "6,90 €",
    image: "/images/pure/dentifrice.jpg"
  },
  deodorant: {
    nom: "Déodorant stick néroli blanc",
    prix: "11,90 €",
    image: "/images/pure/deodorant-stick.jpg"
  },
  recharge: {
    nom: "Recharge déodorant roll-on 24 h",
    prix: "7,90 €",
    image: "/images/pure/recharge-roll-on.jpg"
  },
  masque: {
    nom: "Masque stick argile rose",
    prix: "16,90 €",
    image: "/images/pure/masque-stick.jpg"
  },
  duo: {
    nom: "Duo rituel du matin",
    prix: "29,90 €",
    image: "/images/pure/duo-matin.jpg"
  }
};

export const ApercuEmail = ({objet, preheader, titre, accroche, titreSelection, produits = [], cta = "Découvrir", pied, logiciel, colonnes}) => <div className="not-prose" style={{
  border: "1px solid rgba(127,127,127,0.25)",
  borderRadius: 14,
  overflow: "hidden",
  margin: "20px 0",
  maxWidth: 640
}}>
    <div style={{
  background: "rgba(127,127,127,0.08)",
  padding: "12px 16px",
  fontSize: 13,
  lineHeight: 1.5
}}>
      <div><span style={{
  opacity: 0.6
}}>De :</span> Pure &lt;bonjour@pure.example&gt;</div>
      <div><span style={{
  opacity: 0.6
}}>Objet :</span> <strong>{objet}</strong></div>
      {preheader ? <div style={{
  opacity: 0.6
}}>{preheader}</div> : null}
    </div>
    <div style={{
  background: "#F7F5F0",
  color: "#1C1A16",
  padding: "28px 20px",
  fontFamily: "Helvetica, Arial, sans-serif"
}}>
      <div style={{
  textAlign: "center",
  fontFamily: "Georgia, 'Times New Roman', serif",
  fontSize: 34,
  letterSpacing: "-0.02em",
  marginBottom: 22
}}>pure</div>
      <div style={{
  textAlign: "center",
  fontSize: 22,
  fontWeight: 700,
  marginBottom: 10
}}>{titre}</div>
      <div style={{
  textAlign: "center",
  fontSize: 15,
  lineHeight: 1.6,
  maxWidth: 440,
  margin: "0 auto 22px"
}}>{accroche}</div>
      <div style={{
  textAlign: "center",
  fontSize: 12,
  letterSpacing: "0.12em",
  textTransform: "uppercase",
  opacity: 0.7,
  marginBottom: 14
}}>{titreSelection}</div>
      <div style={{
  display: "grid",
  gridTemplateColumns: `repeat(${colonnes || Math.min(produits.length, 3) || 1}, minmax(0, 1fr))`,
  gap: 14
}}>
        {produits.map(p => <div key={p.nom} style={{
  background: "#FFFFFF",
  borderRadius: 10,
  padding: 10,
  textAlign: "center"
}}>
            <img src={p.image} alt={p.nom} style={{
  width: "100%",
  aspectRatio: "4 / 5",
  objectFit: "cover",
  borderRadius: 6,
  margin: 0
}} />
            <div style={{
  fontSize: 13,
  fontWeight: 600,
  marginTop: 8,
  lineHeight: 1.35
}}>{p.nom}</div>
            <div style={{
  fontSize: 13,
  marginTop: 4
}}>{p.prix}</div>
          </div>)}
      </div>
      <div style={{
  textAlign: "center",
  marginTop: 22
}}>
        <span style={{
  display: "inline-block",
  background: "#1E4A45",
  color: "#F7F5F0",
  padding: "12px 26px",
  borderRadius: 999,
  fontSize: 14,
  fontWeight: 600
}}>{cta}</span>
      </div>
      {pied ? <div style={{
  textAlign: "center",
  fontSize: 11,
  opacity: 0.6,
  marginTop: 24,
  lineHeight: 1.5
}}>{pied}<br />Se désinscrire</div> : null}
    </div>
    {logiciel ? <div style={{
  padding: "8px 16px",
  fontSize: 12,
  opacity: 0.65
}}>Aperçu d'un envoi depuis {logiciel}, marque de démonstration « Pure ».</div> : null}
  </div>;

**L'objectif :** une campagne régulière, par exemple mensuelle, qui montre à chaque contact **sa** sélection.

**Ce qu'il vous faut :** les champs de la sélection personnalisée (`REC1_NAME`… par défaut) dans votre audience.

**Temps :** 20 minutes la première fois, puis 5 minutes.

## Le résultat

<ApercuEmail logiciel="Mailchimp" objet="Votre sélection d'octobre" preheader="Des produits choisis pour vous." titre="Votre sélection personnalisée" accroche="Bonjour Léa, voici quelques produits que nous avons choisis pour vous ce mois-ci." titreSelection="Votre sélection du moment" produits={[PRODUITS.recharge, PRODUITS.dentifrice, PRODUITS.gel]} cta="Découvrir la boutique" pied="Vous recevez cet e-mail parce que vous êtes client de Pure." />

## Pas à pas

<Steps>
  <Step title="Créer le segment des destinataires">
    **Audience** › **Segments** › **Create segment**. Condition : le champ `REC1_ID` **is not blank**. Enregistrez-le sous le nom « Sélection personnalisée ».
  </Step>

  <Step title="Créer la campagne">
    **Campaigns** › **Create** › **Email**. Destinataires : votre audience, segment « Sélection personnalisée ».
  </Step>

  <Step title="Ajouter la sélection à l'e-mail">
    Partez de votre modèle habituel (ou du modèle Titane de votre compte, s'il existe). Ajoutez un bloc de code et collez-y la grille ci-dessous : chaque `*|…|*` est remplacé, pour chaque contact, par ses propres produits.
  </Step>

  <Step title="Prévisualiser avec de vrais contacts">
    **Preview** › **Enter preview mode**, puis faites défiler plusieurs contacts du segment : les produits doivent changer d'un contact à l'autre.
  </Step>

  <Step title="Programmer l'envoi">
    Écrivez l'objet et le préheader, puis programmez l'envoi.
  </Step>
</Steps>

```html Grille de trois produits theme={null}
<table role="presentation" width="100%"><tr>
  <td width="33%" align="center" style="padding:8px">
    <a href="*|REC1_URL|*"><img src="*|REC1_IMG|*" alt="*|REC1_NAME|*" width="170" style="width:100%;height:auto"></a>
    <p><strong>*|REC1_NAME|*</strong><br>*|REC1_PRICE|*</p>
  </td>
  <td width="33%" align="center" style="padding:8px">
    <a href="*|REC2_URL|*"><img src="*|REC2_IMG|*" alt="*|REC2_NAME|*" width="170" style="width:100%;height:auto"></a>
    <p><strong>*|REC2_NAME|*</strong><br>*|REC2_PRICE|*</p>
  </td>
  <td width="33%" align="center" style="padding:8px">
    <a href="*|REC3_URL|*"><img src="*|REC3_IMG|*" alt="*|REC3_NAME|*" width="170" style="width:100%;height:auto"></a>
    <p><strong>*|REC3_NAME|*</strong><br>*|REC3_PRICE|*</p>
  </td>
</tr></table>
```

<Tip>
  Remplacez `REC…` par les noms de votre audience s'ils diffèrent. Le prix est déjà mis en forme (« 24,90 € ») : affichez-le tel quel.
</Tip>

## Pour aller plus loin

* **Un message par palier de valeur.** Dupliquez la campagne avec un segment `TITANVALEU` **is** `haute`, plus premium et sans remise.
* **Au bon moment pour chacun.** Ajoutez la condition `TITANDELAI` **is less than** 15 et refaites la campagne toutes les deux semaines.
* **Enregistrez la grille.** Une fois la grille au point, enregistrez l'e-mail comme modèle : la campagne suivante prend cinq minutes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.