Send Single Message action cannot send HTML: no HTMLBody param, so HTML is delivered as plain text
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- sql, typescript
Direzione di ricerca
Start with packages/Actions/CoreActions/src/custom/communication/send-single-message.action.ts and trace how its declared ActionParam rows are added through a migration. Then check packages/Communication/engine/src/BaseProvider.ts and the MSGraphProvider content type selection. Done means the action accepts HTMLBody, maps it to Message.HTMLBody, and the migration adds the corresponding input row.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
__SendSingleMessage has no HTML body parameter, so any HTML passed to it is delivered as plain text. The recipient sees raw markup.
Checked on lts/6.2 (v6.2.1-9-gb61ac29) and on next (7cfca02, 2026-11-18). Both have the same gap.
The chain
packages/Actions/CoreActions/src/custom/communication/send-single-message.action.ts:54-60builds itsMessagefrom four params —Subject,Body,To,From. There is noHTMLBody, and the action's declaredActionParamrows are exactlyBody, From, MessageType, Provider, Subject, To, so no spelling of an input reachesMessage.HTMLBody.- With no
HTMLBodyand no template,packages/Communication/engine/src/BaseProvider.ts:89leavesProcessedHTMLBodyas'':this.ProcessedHTMLBody = this.HTMLBody || this.ProcessedHTMLBody || ''; - Providers then choose the content type from that field.
packages/Communication/providers/MSGraph/src/MSGraphProvider.ts:413:
So Graph is toldcontentType: message.ProcessedHTMLBody ? 'HTML' : 'Text', content: message.ProcessedHTMLBody || message.ProcessedBodyTextand handed the markup.
Reproduction
Run the action with Provider: Microsoft Graph, MessageType: Email, and Body set to <p>hello</p>. The action returns SUCCESS, the message is delivered, and the body reads <p>hello</p> literally. The MJ: Communication Logs row confirms where it went: the markup is in MessageContent.TextBody and MessageContent.HTMLBody is empty.
Why it matters
The action is the documented way to send one message without building a Template, and it is what an Action-type Scheduled Job or an agent reaches for. Today an HTML email is only possible through a BodyTemplate carrying HTML content — a template per message shape, which is a lot of metadata for a body an agent already rendered in code. There is also no failure signal: the action reports success and the provider accepts the message, so the defect is only visible in the recipient's inbox.
Proposed fix
Accept an HTMLBody param and map it onto the message:
const htmlBody = params.Params.find(p => p.Name.trim().toLowerCase() === 'htmlbody');
// ...
const m: Message = {
MessageType: mt,
From: from.Value,
To: to.Value,
Subject: subject?.Value,
Body: body?.Value,
HTMLBody: htmlBody?.Value,
}
Message.HTMLBody already exists on the base contract (packages/Communication/engine/src/BaseProvider.ts:70) and every provider already keys its content type off the processed form of it, so nothing downstream needs to change.
Two notes for whoever picks this up:
- The action's inputs are metadata, so the fix is a code change plus a migration adding the
HTMLBodyActionParamrow to theSend Single Messageaction. Without the row, a caller passingHTMLBodymay have it dropped beforeInternalRunActionsees it. - Keeping
Bodyas the plain-text alternative andHTMLBodyas the HTML one matches whatStartLogalready records per message (TextBodyandHTMLBodyinMessageContent), so the log becomes self-describing once both are set.
- Lingua principale
- TSQL
- Stelle
- 32
- Fork
- 7
- Merge medio
- 1g 16h
- PR unite (30g)
- 504
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MemberJunction/MJ
-
DBAutoDoc: export --state-file writes SQL Server SQL for a PostgreSQL database, ignoring --providerAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
MemberJunction/MJ#7094 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
MemberJunction/MJ#6971 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
MemberJunction/MJ#6947 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MemberJunction/MJ#6800 ·
I maintainer di solito rispondono entro 1 giorno
-
Convention: saved-query discoverability follows Status — Approved is canon, Pending is a draftAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
MemberJunction/MJ#6746 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di MemberJunction/MJ
Issue simili
-
HXsetdir strdup leakAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
-
funding: failure logs print `<nil>` error and zero channel IDForse già presa @litbot-9000 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
lightningnetwork/lnd#11676 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Fei2411/DeepSeek-Bot#2891 ·
-
factory:subtask
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno