New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to BCC in mail, Spree 2.0 Stable Rails 3.2.14 #4484

Closed
mattjg908 opened this Issue Mar 21, 2014 · 13 comments

Comments

Projects
None yet
4 participants
@mattjg908

mattjg908 commented Mar 21, 2014

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
source 'https://rubygems.org'

gem 'rails', '3.2.14'

gem 'mysql2'

gem 'spree', :github => '/spree', :branch => '2-0-stable'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '2-0-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '2-0-stable'
gem 'spree_volume_pricing', :github => 'spree/spree_volume_pricing', :branch => '2-0-stable'
gem 'spree_i18n', :github => 'spree/spree_i18n', :branch => '2-0-stable'
gem 'spree_static_content', :github => 'spree/spree_static_content', :branch => '2-0-stable'

gem 'spree_lot_ui', :path => 'spree_lot_ui'
gem 'spree_active_shipping', github: 'spree/spree_active_shipping', branch: '2-0-stable'
gem 'bootstrap-sass', '2.1.0.0'
gem 'jquery-rails'

gem 'execjs'
gem 'therubyracer'
gem 'newrelic_rpm'
gem 'exception_notification'

group :assets do
gem 'sass-rails', '> 3.2.3'
gem 'coffee-rails', '
> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end

group :development do
gem 'capistrano'
gem 'rvm-capistrano'
gem 'unicorn'

gem 'better_errors'
gem 'pry'
gem 'pry-doc'
gem 'quiet_assets'
#gem 'rack-mini-profiler'
end

group :development, :test do
gem 'awesome_print'
gem 'minitest'
gem 'minitest-firemock'
gem 'minitest-rails'
gem 'minitest-test'
gem 'guard-minitest'
gem 'mocha', :require => false
gem 'turn'
gem 'database_cleaner'
end

@huoxito huoxito added the worksforme label Mar 22, 2014

@huoxito

This comment has been minimized.

Show comment
Hide comment
@huoxito

huoxito Mar 22, 2014

Member

@mattjg908 I'm not sure looking for bcc on mailer classes will help. I believe the Interceptor runs after the mailers. I just did some quick testing setting up mailcatcher and bcc does work. My guess is it doesn't show up on rails logs because it's bcc.

Member

huoxito commented Mar 22, 2014

@mattjg908 I'm not sure looking for bcc on mailer classes will help. I believe the Interceptor runs after the mailers. I just did some quick testing setting up mailcatcher and bcc does work. My guess is it doesn't show up on rails logs because it's bcc.

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Mar 24, 2014

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?

mattjg908 commented Mar 24, 2014

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?

@dan-ding

This comment has been minimized.

Show comment
Hide comment
@dan-ding

dan-ding Apr 2, 2014

Contributor

Are you using the same e-mail address for both the interceptor and bcc? If so, you'll only get one e-mail.

Contributor

dan-ding commented Apr 2, 2014

Are you using the same e-mail address for both the interceptor and bcc? If so, you'll only get one e-mail.

@daniel-rosiak

This comment has been minimized.

Show comment
Hide comment
@daniel-rosiak

daniel-rosiak Jun 4, 2014

Hi, did you manage to solve this problem? I have EXACTLY same in my app. Spree 2-0 stable & Rails 3.2.14. @mattjg908

daniel-rosiak commented Jun 4, 2014

Hi, did you manage to solve this problem? I have EXACTLY same in my app. Spree 2-0 stable & Rails 3.2.14. @mattjg908

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Jun 4, 2014

Hey @daniel-del-terrore ,
Yes, I did resolve this issue. I'm trying to think back to how I resolved it and I'm having a little trouble recalling all the steps. So, first can you confirm that you've done the basic stuff I mentioned in my first post above? If so,the next step is to contact whoever does your hosting. Sometimes there are settings they have to adjust in order for this to work. Please let me know if this resolves the issue, if not I will go back and review my old notes/code

mattjg908 commented Jun 4, 2014

Hey @daniel-del-terrore ,
Yes, I did resolve this issue. I'm trying to think back to how I resolved it and I'm having a little trouble recalling all the steps. So, first can you confirm that you've done the basic stuff I mentioned in my first post above? If so,the next step is to contact whoever does your hosting. Sometimes there are settings they have to adjust in order for this to work. Please let me know if this resolves the issue, if not I will go back and review my old notes/code

@daniel-rosiak

This comment has been minimized.

Show comment
Hide comment
@daniel-rosiak

daniel-rosiak Jun 4, 2014

@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.

daniel-rosiak commented Jun 4, 2014

@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.

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Jun 4, 2014

Hey @daniel-del-terrore,
Yea, I know how frustrating this issue is. I suspect when they get back to you all will work as intended, but as I mentioned I will review my notes if that is not the case. Good luck & let me know!

Best,
Matt

mattjg908 commented Jun 4, 2014

Hey @daniel-del-terrore,
Yea, I know how frustrating this issue is. I suspect when they get back to you all will work as intended, but as I mentioned I will review my notes if that is not the case. Good luck & let me know!

Best,
Matt

@huoxito

This comment has been minimized.

Show comment
Hide comment
@huoxito

huoxito Jun 6, 2014

Member

Closing this as it's look like a server issue. thanks guys

Member

huoxito commented Jun 6, 2014

Closing this as it's look like a server issue. thanks guys

@huoxito huoxito closed this Jun 6, 2014

@daniel-rosiak

This comment has been minimized.

Show comment
Hide comment
@daniel-rosiak

daniel-rosiak Jun 6, 2014

@mattjg908 @huoxito I just got confirmation from testing crew - it works. It was a server setting issue.

daniel-rosiak commented Jun 6, 2014

@mattjg908 @huoxito I just got confirmation from testing crew - it works. It was a server setting issue.

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Jun 6, 2014

Great, thanks for letting me know @daniel-del-terrore, and thanks for closing the issue @huoxito

mattjg908 commented Jun 6, 2014

Great, thanks for letting me know @daniel-del-terrore, and thanks for closing the issue @huoxito

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Jun 9, 2014

Hey @daniel-del-terrore,
I'm just curious and if you're not at liberty to divulge that is fine, but does Media Temple do your hosting by chance?

mattjg908 commented Jun 9, 2014

Hey @daniel-del-terrore,
I'm just curious and if you're not at liberty to divulge that is fine, but does Media Temple do your hosting by chance?

@daniel-rosiak

This comment has been minimized.

Show comment
Hide comment
@daniel-rosiak

daniel-rosiak commented Jun 9, 2014

@mattjg908

This comment has been minimized.

Show comment
Hide comment
@mattjg908

mattjg908 Jun 10, 2014

Ah, ok thanks @daniel-del-terrore

mattjg908 commented Jun 10, 2014

Ah, ok thanks @daniel-del-terrore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment