Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to BCC in mail, Spree 2.0 Stable Rails 3.2.14 #4484
Regardless of how I ry to send a 'copy of all mails to', it doesn't work. I have set it in the Spree admin by providing an email address there. I have also down the following in the initializers, etc. :
I have checked the interceptor which is where the bcc is checked for and supposedly sends. I know this file loads and works for intercepting all emails and sending them to a specified email as that works in the app. I have also found and tried numerous configurations for the OrderMailer file which is also responsible for mail, this is where a person SHOULD be able to include a bcc. I know this file loads properly as I am able to adjust everything else in it, like hard coding the 'to:' field or the 'from' field and then having those changes be reflected. The bcc however does not work. I have also adjusted the initializer which can be used to configure emails if you'd rather use that than the Spree Admin in the UI. Of course it goes without saying that I have adjust the Spree UI. I have also found and adjusted, readjusted, etc. the Spree Base Mailer. The same things go the Action Mailer, and AcitonMailer Base files. I have also adjusted the mailer yml file. I have also used the initializer to disable Spree Mailer and rely on the ActionMailer entirely. I have also used the console to configure settings, and check settings, and verify settings. no matter what, nothing has ever been bcc'd. In fact, I cannot even get the bcc to show up as a header. I have also used the initializer to try to adjust ActionMailer headers, this did not work either. Basically every file I could find that had any relation to the mailer I have adjusted, tested, readjusted, tested, etc..
Seems like a similar issue this person was having, which never seems to have been resolved: https://groups.google.com/forum/#!topic/spree-user/50yjID6znOE
Spree 2.0 Stable, Rails 3.2.14
gem 'rails', '3.2.14'
gem 'spree', :github => '/spree', :branch => '2-0-stable'
gem 'spree_lot_ui', :path => 'spree_lot_ui'
group :assets do
group :development do
group :development, :test do
thanks @huoxito for looking in to the issue. The issue I am experiencing is not just in the logs, it actually does not send the bcc email. I've tried both in development and production. The interceptor works for actually intercepting the mail if I add an address in the "INTERCEPT EMAIL ADDRESS" field. However, I have added an address in to the "SEND COPY OF ALL MAILS TO", which should hit the second of 2 functions in the interceptor and send a bcc, which it is not doing. I have changed the "to:" in order_mailer to be an array and it will send two emails so I know that it can in fact send more than one email, it can intercept emails, and yet it cannot bcc. Any other thoughts?
Hey @daniel-del-terrore ,
@mattjg908 , thx for answer. I tried almost everything from your first post - with no effect at all. So I began to suspect that my server setting is the issue here so an hour ago I wrote to my hosting provider if they can check it and I am currently waiting for answer. That is my status now, so I will update you when my provider write me back.