You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.
Although I am currently not really able to check this, my guess is that it is related to capitalization.
So, try this instead:
api.message.setHtmlCampaign(...)
If that's not the problem than it has something to do with the encoding, in that case I'll have to check it out but I'll be quite busy the next 1.5 weeks so it will have to wait a little bit.
Sorry for the slow response, this thing slipped my mind a bit...
Regardless, I have just tried the sethtmlcampaign method and it seems to work but you are required to add the unsubscribe link. So, add this [[UNSUB_LINK_NL]] to your text and html.
api.message.sethtmlcampaign(
method='POST',
id=campaign_['campaign']['id'],
html='test [[UNSUB_LINK_NL]]',
text='hello world [[UNSUB_LINK_NL]]',
)
When i use the function :
api.message.sethtmlcampaign(method='POST', id=campaign_['campaign']['id'], html='test', text='hello world')
That respond to me :
HTTPError: HTTP Error 400: Bad Request
Then i cant put html on my mails !
Any idea?
The text was updated successfully, but these errors were encountered: