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

email_type is invalid #6

Open
ghost opened this issue Feb 14, 2019 · 1 comment
Open

email_type is invalid #6

ghost opened this issue Feb 14, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 14, 2019

The email type that is being sent is empty.
I get an error code from mailchimp API with code 400
I made it as 'html' in the controller
Can you please specify the type of the email_type.

Thanks

@AxelPariss
Copy link

AxelPariss commented Apr 1, 2019

The same error, I submitted a pull request (you can check if you want to update your controller)

I replace

 'email_type' => $request->post('email_type', ''),

by

 'email_type' => empty($request->post('email_type', '')) ? $request->post('email_type', '') : 'text',

in
vendor/lukeyouell/craft-mailchimplists/src/controllers/SubscribeController.php

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

1 participant