Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending CampaignMonitor campaigns #6

Open
jamiepittock opened this issue Jan 13, 2015 · 5 comments
Open

Sending CampaignMonitor campaigns #6

jamiepittock opened this issue Jan 13, 2015 · 5 comments

Comments

@jamiepittock
Copy link

I'm trying to use a notification to send a CM campaign but the CM API keeps responding with the error "HTML Content URL Required".

I remember you saying CM requiring a URL rather than data was initially an issue for you.

The 'plain' and 'html' columns in the 'postmastermessagetemplates' table are always null.

Any idea what I might be doing wrong?

@objectivehtml
Copy link
Owner

Can you send a screenshot of how you have your notification setup? I will try to setup a similar notification and duplicate the error locally.

You are indeed correct about the problem, that's the exact issue. I combat this issue with that table you mentioned. Basically, there is a route and controller to server email templates via a URL. So first and foremost, this is impossible to test locally since local URL's rarely resolve to public IP's or DNS. But if you aren't testing locally, and still getting this error (because of the null db columns), then this is likely a bug.

@jamiepittock
Copy link
Author

Here's a couple of screenshots...

https://www.dropbox.com/s/d7rpnzcuvovkse5/Screen%20Shot%202015-01-13%20at%2018.17.54.png
https://www.dropbox.com/s/muhyoymf8zqo1k7/Screen%20Shot%202015-01-13%20at%2018.17.02.png

In the settings column of the notifications table, "body" and "htmlBody" are both null. This might be by design and they get populated during the sending of the email but something isn't working right because the messagetemplates tabel is getting the null values.

Let me know if there's anything else I can provide.

@objectivehtml
Copy link
Owner

I am taking a look at this now. When you save the notification, the template fields are getting saved correct?

@objectivehtml
Copy link
Owner

Also, what did you enter for the campaign name field in the service tab?

@objectivehtml
Copy link
Owner

I think I have this issue fixed. Download the master branch to see if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants