> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/parametrage/automatiser/les-automatismes-sur-action/envoi-automatique-de-message/modification-dun-message-avant-envoie.md). Agents can also search and read this documentation through its [MCP server](https://doc.simax.fr/~gitbook/mcp).

# Modification d’un message avant envoie

Il faut importer le SMX : Langage v11.

&#x20;

Dans un automatisme un envoi automatique de message, le choix « Ouvrir le message avant envoi » permet de spécifier si le message est ouvert et modifiable par l'utilisateur avant l'envoi.

&#x20;

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FLnVjZZGZtoUAGRdw6iJV%2Fimage%202.png?alt=media&amp;token=5489e011-0d2b-410d-a2ea-4e9c2c36c858" alt=""><figcaption></figcaption></figure>

<p align="right"><em>IMG_P00507</em></p>

Les options sont :

\- Non : le message est envoyé tel quel (comme avant).

\- Ouvrir en modification, Bloquant : le message est ouvert dans l'IHM et l'utilisateur peux le modifier et décider de l'envoyer ou pas. Tant que le message est ouvert les automatismes courants sont bloqués.

\- Ouvrir en modification, Non bloquant : le message est ouvert dans l'IHM et l'utilisateur peux le modifier et décider de l'envoyer ou pas. Les automatismes continuent de s'exécuter dès l'ouverture du message.

{% hint style="info" %}
*<mark style="color:$warning;">**Important**</mark> : Les automatismes exécutés par NOUTOnline ou NOUTCli n'ouvre pas le message et l'envoie directement (comme pour l'option Non). Si le message n'est pas correcte (par de destinataire par exemple une erreur sera générée). Il est possible d'utiliser EnModeWindows().*
{% endhint %}

&#x20;

*<mark style="color:purple;">**Conseil**</mark> :*

*Le choix Non bloquant est le plus intéressant, le Bloquant peut permettre enchaîner plusieurs envoie de message avec ouverture.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.simax.fr/parametrage/automatiser/les-automatismes-sur-action/envoi-automatique-de-message/modification-dun-message-avant-envoie.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
