Mad Mimi Error when Trying to Send an e-mail to a list

195 views Asked by At

I put this into my terminal

uri = URI('https://api.madmimi.com/mailer/to_list')
res = Net::HTTP.post_form(uri,'username'=>'[email protected]',
'api_key' => 'xxxxxx2ce1ac9eb91c75f5933283eb6c ', 'promotion_name' => 
'bulletin', 'subject' => 'Your Daily Bulletin Update', 'from' => 
'[email protected]/', 'list_name' => 'bulletin')

The result was

#<Net::HTTPBadRequest 400 Bad Request readbody=true>

On the Mad Mimi API they talk about putting in your user name and API key https://madmimi.com/developer/mailer/methods

What am I doing wrong? Should I put the username and API key elsewhere?

1

There are 1 answers

0
Flippakitten On

James here from Mad Mimi, would you mind popping an email to us and I can have a look at your account and check the settings, list names and the promotion.

I would say remove the / at the end of the your "from" email and just check there are no spaces in your API key.

If that doesn't work, I would need to check the promotion but make sure there are no {placeholder} in your bull

Thank you, James