amelioration(dolist): desactive le tracking http

This commit is contained in:
Martin 2023-04-14 10:11:09 +02:00
parent 8d89e2aec6
commit a47b19bee9

View file

@ -192,6 +192,7 @@ class Dolist::API
post(url, body)["ItemList"] post(url, body)["ItemList"]
end end
# see: https://api.dolist.com/documentation/index.html#/7edc2948ba01f-creer-un-envoi-transactionnel
def prepare_mail_body(mail) def prepare_mail_body(mail)
{ {
"Type": "TransactionalService", "Type": "TransactionalService",
@ -207,15 +208,15 @@ class Dolist::API
"Name": mail['X-Dolist-Message-Name'].value, "Name": mail['X-Dolist-Message-Name'].value,
"Subject": mail.subject, "Subject": mail.subject,
"SenderID": sender_id, "SenderID": sender_id,
"ForceHttp": true, "ForceHttp": false, # ForceHttp : force le tracking http non sécurisé (True/False).
"Format": "html", "Format": "html",
"DisableOpenTracking": true, "DisableOpenTracking": true, # DisableOpenTracking : désactivation du tracking d'ouverture (True/False).
"IsTrackingValidated": true "IsTrackingValidated": true # IsTrackingValidated : est-ce que le tracking de ce message est validé ? (True/False). Passez la valeur True pour un envoi transactionnel.
}, },
"MessageContent": { "MessageContent": {
"SourceCode": mail_source_code(mail), "SourceCode": mail_source_code(mail),
"EncodingType": "UTF8", "EncodingType": "UTF8",
"EnableTrackingDetection": false "EnableTrackingDetection": false # EnableTrackingDetection : booléen pour lactivation du tracking personnalisé des liens des messages utilisés lors des précédents envois (True/False).
} }
} }
end end