Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Sethtmlcampaign issue #2

Closed
nini29 opened this issue Jan 23, 2013 · 2 comments
Closed

Sethtmlcampaign issue #2

nini29 opened this issue Jan 23, 2013 · 2 comments

Comments

@nini29
Copy link

nini29 commented Jan 23, 2013

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?

@wolph
Copy link
Owner

wolph commented Jan 23, 2013

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.

@wolph
Copy link
Owner

wolph commented Sep 11, 2013

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]]',
    )

@wolph wolph closed this as completed Sep 11, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants