Error When trying to Send Mail


I'm trying to implement your API wrapper for my mailing program.
When i tried to send an email, I noticed that I received back search results and not a send result.
I did a quick look up into your Messages.cs file and noticed the command being used is "search.json" and I don't believe this is sending messages:
    /// <summary>Send will send a new transactional message through Mandrill</summary>
    /// <param name="key">the users api key</param>
    /// <param name="T">The message data</param>
    /// <returns>A struct of type RecipientReturn</returns>
    public List<RecipientReturn> send(object T)
        var request = new MandrillRestRequest
            Method = RestSharp.Method.POST,
            Resource = string.Format("{0}/search.json", messages)
        request.AddBody(new { key = _ApiKey, message = T });
        return Execute<List<RecipientReturn>>(request);


ddesborough wrote Mar 10, 2013 at 9:18 PM

Yes, I just downloaded and compiled the code and see the same thing. Check search.json to send.json and it will send email.

ddesborough wrote Mar 10, 2013 at 9:18 PM

Sorry.... "Change search.json to send.json..."

williamsonjake wrote Jun 20, 2013 at 11:24 AM

me too - spent 1/2 hour banging my head against a wall till i found this post...

bondt wrote Jul 1, 2013 at 9:40 AM

Thanks a bunch! :-)