0

I just came across a problem, spent hours but couldn't found root cause.

Mail sending works fine if I don't add bcc option but when I add bcc,

 def test_email
   mail :to => '[email protected]',
   :subject => 'Sample test',
   :bcc => ['[email protected]']
 end

It sends email to none and adds [email protected] as bcc.

Here is console output,

Mailer.test_email.deliver
#<Mail::Message:63045380, Multipart: true, Headers: <Date: Mon, 02 Jun 2014 13:03:02 +0000>, <From: [email protected]>, <To: >, <Cc: >, <Bcc: ["[email protected]"]>, <Message-ID: <[email protected]>>, <Subject: Sample test>, <Mime-Version: 1.0>, <Content-Type: multipart/alternative; boundary="--==_mimepart_538c76063914_45b9a1001872662"; charset=UTF-8>, <Content-Transfer-Encoding: 7bit>, <X-Auto-Response-Suppress: OOF>, <Auto-Submitted: auto-generated>> 

I am using Rails 3.2.8 and ruby 1.9.3p545.

I ideas to fix this prblem?

5
  • what you got inside logger ? Jun 2, 2014 at 13:15
  • I am not seeing anything wrong.. can you pass those inside the brackets (..).. Wild debug tips although.. :) Jun 2, 2014 at 13:24
  • Yes, I tried brackets but not worked :(
    – Ramiz Raja
    Jun 2, 2014 at 13:28
  • I knew it wouldn't work.. show the content of the config/environments/$RAILS_ENV.rb.. Jun 2, 2014 at 13:30
  • Well, It's redmine application. I can't see these setting anywhere.
    – Ramiz Raja
    Jun 2, 2014 at 14:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.