Problem

When trying to configure the Mailchimp STS you will sometimes not receive any e-mails when trying to verify a new e-mail. There are no corresponding error messages to explain the problem, and you are able to send e-mail from your Drupal install using other methods.

At least one underlying issue is that at least one specific problem response from the server is not handled correctly by existing code. If you haven't integrated your Mailchimp account with your Amazon account, server response will be an error 500. Serialized, the response is...

aws_code NULL
aws_code NULL
http_code 500
message Please setup the integration first

This will also leave your verified e-mail select list as completely blank but without an error response indicated, as well (another "Please integrate" response).

Proposed resolution

On my own install I've jammed this into mailchimp_sts.class.php at line 177 to at least see an error message.

    if (isset($response["http_code"]) && $response["http_code"] == 500) {
      $response["error"] = $response["message"];
      $response["code"] = $response["http_code"];  
   }

Something less specific to error 500 would be better, since there are a variety of http error codes and none of them would generate an actual error message.

CommentFileSizeAuthor
#6 mailchimp-n1198938.patch690 bytesdamienmckenna

Comments

levelos’s picture

Status: Active » Closed (works as designed)

When using STS, you don't use any other library to send emails, you use the STS api through the module.

wwedding’s picture

Version: 7.x-2.0-beta1 » 7.x-2.0
Component: Code » STS
Category: feature » bug
Status: Closed (works as designed) » Active

I don't think the original submission was very clear so I updated it. There is a problem with not getting confirmation e-mails when you submit an address to add to the verified list.

I found at least one cause (my specific issue) and improved the issue text to be clearer. I'm not 100% clear which version I've got and will update the issue with a more accurate version number if I need to.

wwedding’s picture

Title: MailChimp STS is not sending email for confirmation. » MailChimp STS sometimes not sending confirmation e-mails when adding Verified E-mail
federico.parra’s picture

I have the same problem!

wwedding’s picture

@#4 You need to make sure you've integrated your MailChimp and Amazon Webservices accounts. Have you done this?

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new690 bytes

Here's stickywes' code put into a patch, this has helped me identify problems.

federico.parra’s picture

What do you mean by integrating Amazon and Mailchimp? Where does it say one should do that? I don't even have an Amazon account!

Best!

Anticosti’s picture

Subscribing

wwedding’s picture

#7

The Mailchimp STS requires you to create/have an Amazon Web Services account with the SES (Simple Email Service) active. You need to create an Amazon Web Services account, generate an API key and secret code, and then head to Mailchimp.

In your Mailchimp account, under "Account" is an "Integrations" entry, and that is where you have to input your API key and secret code.

Mailchimp requires you to have a Pay As You Go or Monthly account in order to integrate, and Amazon Web Services will charge $0.10 per thousand e-mails.

The documentation in the module with respect to STS is pretty sparse but that should be opened as a different issue. It assumes a certain level of knowledgeability., for sure.

crispinbailey’s picture

@stickywes re: #9,

That's pretty important information! Thank you for pointing it out! I haven't seen that mentioned anywhere else.

Note to maintainers: I just spent the past hour trying to figure out why I wasn't getting a confirmation email, and documented the steps in another issue thread, only to find out in this thread that I would need to upgrade my Mailchimp account and apply for an Amazon WS account for it to work. Had I read on the project page that this was a requirement for STS integration I would have saved myself a lot of time and frustration. Please consider adding a note to the project page. Thanks!

levelos’s picture

Status: Needs review » Fixed

Thanks for the guidance everyone. All set in commit dee2459ca0a0e4d5547b9b01fda2d110699844ac. I took a slightly different approach, but basically used the patch provided in #6. Now if you hit the STS config page w/o having MailChimp / Amazon configured, you'll get a warning message, no settings form, and a link to comprehensive documentation.

damienmckenna’s picture

Sounds like a very reasonable solution, thank you! :)

crispinbailey’s picture

Perfect, thanks for the update! Applying it now :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Re-wrote original and really lacking issue text