Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8069709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:08:59+00:00 2026-06-05T13:08:59+00:00

I am using CloudMailin in an attempt to upload profile pics to a mobile

  • 0

I am using CloudMailin in an attempt to upload profile pics to a mobile device web site via email. Using their documentation I have…

incoming_mails_controller.rb:

  def create
    ...
    user_id = params[:headers][:subject] # line 13
    ...
  end

The error I am getting:

NoMethodError (undefined method `[]' for nil:NilClass):
  app/controllers/incoming_mails_controller.rb:13:in `create'

The relevant portion of the log:

Apple-Mail=_...\r\n", "x_references"=>"sample@example.com", "x_cc_header"=>"", "subject"=>"Smith, Joe"}

Rummaged around the web for a solution and didn’t find a solution. Thanks for your help.


Update:

Placed the following in the controller:

::Rails.logger.info "PARAMS INSPECT: " + params.inspect

The following is only a very small portion of what it yielded:

PARAMS INSPECT: {"message"=>"Received: by ... :content-type:subject:date:message-id:to:mime-version:x-mailer\r\n...
Content-Type: multipart/alternative; boundary=\"Apple-Mail=_..."\r\n
Subject: Smith, John\r\n ...
"return_path"=>"yada@blah.com", 
"x_from_header"=>"[\"blay@yada.com\"]", ...
"subject"=>"Smith, John"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:09:01+00:00Added an answer on June 5, 2026 at 1:09 pm

    It’s hard to be certain of the exact structure of the params hash and any sub-hashes without the full (presumably long) print out of params, but it looks as though there’s a parameter for each header, including a ‘subject’ parameter (params[:subject], probably?). Is that what you needed?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that receives incoming emails via cloudmailin, adds the content to
Using Server.Transfer to show a page that informs the user that the web site
Using Firebug I have extracted all the links of a web page using: var
I am using cloudmailin to receive emails that are sent to a specific address.
Using android 2.3.3, I have a background Service which has a socket connection. There's
Using MVC2 I have an AJAX form which is posting to a bound model.
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using Core Data, I have a fetch request to fetch the minimum of a
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
Using Java,I have to fetch multiple sets of values from an XML file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.