Validation failed: Name can't be blank

47 views
Skip to first unread message

manojp...@gmail.com

unread,
May 16, 2012, 4:02:43 AM5/16/12
to madmi...@googlegroups.com
Hi,

I'm trying to use madmimi's mail api using the mad_mimi_mailer gem (v0.2.0) with rails 3.2.

I'm getting a 'Validation failed: Name can't be blank' response from mad mimi

This is the data I'm sending :

{
          :raw_html => #<Mail::Body:0xfb5cb7ff4
        @part_sort_order = [
            [0] "text/html",
            [1] "text/plain"
        ],
        attr_accessor :boundary = nil,
        attr_accessor :charset = "US-ASCII",
        attr_accessor :encoding = "7bit",
        attr_accessor :epilogue = nil,
        attr_accessor :preamble = nil,
        attr_reader :parts = [],
        attr_reader :raw_source = #<ActiveSupport::SafeBuffer:0xfb5ccc2ec
            attr_reader :html_safe = true
        >
    >,
    :raw_plain_text => #<Mail::Body:0xfb5cba984
        @part_sort_order = [
            [0] "text/html",
            [1] "text/plain"
        ],
        attr_accessor :boundary = nil,
        attr_accessor :charset = "US-ASCII",
        attr_accessor :encoding = "7bit",
        attr_accessor :epilogue = nil,
        attr_accessor :preamble = nil,
        attr_reader :parts = [],
        attr_reader :raw_source = ""
    >,
        :recipients => "a...@xyz.com",
    :promotion_name => nil,
           :subject => "Welcome",
         :list_name => nil,
              :name => "Great Bear",
              :from => "in...@something.com",
          :raw_yaml => nil
}

Where can I read up on what params / error messages mean and which of them are compulsory, etc ?

-- Manoj
Reply all
Reply to author
Forward
0 new messages