GithubHelp home page GithubHelp logo

spree-contrib / spree_mail_settings Goto Github PK

View Code? Open in Web Editor NEW
28.0 7.0 152.0 117 KB

Mail setting functionality extracted from Spree.

Home Page: http://guides.spreecommerce.org

License: BSD 3-Clause "New" or "Revised" License

Ruby 78.64% JavaScript 0.26% CSS 0.31% HTML 20.79%

spree_mail_settings's Introduction

⚠️ Deprecation notice ⚠️

This extension is deprecated and not maintained anymore. Please use standard Rails Action Mailer configuration instead. Also Spree Starter comes with Sendgrid pre-configured.

Spree Mail Settings

Build Status Code Climate


Installation

  1. Add this extension to your Gemfile with this line:

Spree >= 3.1

gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings'

Spree 3.0 and Spree 2.x

gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'X-X-stable'

The branch option is important: it must match the version of Spree you're using. For example, use 3-0-stable if you're using Spree 3-0-stable or any 3.0.x version.

  1. Install the gem using Bundler:
bundle install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.


Contributing

See corresponding guidelines


License

Copyright (c) 2014-2015 John Hawthorn and contributors, released under the New BSD License

spree_mail_settings's People

Contributors

bbonislawski avatar damianlegawiec avatar futhr avatar gjselten avatar ironin avatar jhawthorn avatar joseramonc avatar mafi88 avatar mauazua avatar odk211 avatar przemosk avatar softr8 avatar szymoniwacz avatar vishalzambre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

spree_mail_settings's Issues

'Test Mail error: no implicit conversion of nil into Hash' error

Sending a test mail from the admin mail method settings interface shows this error
Test Mail error: no implicit conversion of nil into Hash
SMTP SETTING
SMTP DOMAIN :gmail.com
SMTP MAIL HOST: smtp.gmail.com
SMTP PORT: 465
Connection : SSL
auth type: login
username: my account email
password: my account password.

Different port and connection gets different error
Test Mail error: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
SMTP SETTING
SMTP DOMAIN :gmail.com
SMTP MAIL HOST: smtp.gmail.com
SMTP PORT: 587
Connection : TLS
auth type: login
username: my account email
password: my account password.

mails_from preference not defined in 3-0 stable

Hi ..... I installed 3-0 stable version of spree_mail_settings I am getting the following error :

mails_from preference not defined
Extracted source (around line #62):

def has_preference!(name)
raise NoMethodError.new "#{name} preference not defined" unless has_preference? name
end

def has_preference?(name)

pls help me ...
thank u

spree 2-4-stable

How to install spree_mail_settings with spree 2-4-stable?
When trying to bundle it says:
In Gemfile:
spree_mail_settings (>= 0) ruby depends on
spree_backend (~> 2.2.0) ruby
spree (>= 0) ruby depends on
spree_backend (2.4.0.rc3)

Compatibility with Spree 4.1

Need some help here 😕

Getting the error below when trying this gem out with spree 4.1, I've tried removing the dependencies but giving me a "NoMethodError in Spree::Admin::MailMethods#edit" for enable_mail_delivery preference not defined

Bundler could not find compatible versions for gem "spree_auth_devise":
In snapshot (Gemfile.lock):
spree_auth_devise (= 4.1.0)

In Gemfile:
spree_auth_devise (~> 4.1)

spree_mail_settings was resolved to 3.3.0, which depends on
  spree_auth_devise (< 4.0, >= 3.1.0)

Postgresql - Database does not exist error caused by forking this gem

This gem is currently not working due to not having the correct spree version in the gemspec. I forked the gem and edited the line to allow for version 4.1 of spree. This got the gem working but with some unforeseen consequences.

Every time I tried to create the database it would throw some variation of this error "development Database does not exist "

The error was happening regardless of anything I tried every version of bundle rake db:create after searching for hours on stack overflow for similar issues.

bundle exec rake db:create

I tried downloading the project fresh from git and even tried remaking my project from scratch. However, as soon as this gem was removed from the gemfile the error left with it. No idea what this gem could be doing that would interfere with postgres creating a database but there it is.

Custom auth settings override

I have spee using custom authentication with devise pretty much the same as this:
https://guides.spreecommerce.com/developer/authentication.html

Currently I have spree_mail_settings working for the settings of all of spree's emails but It doesn't seem to work for email outside of spree eg. user confirmation emails from devise

Is there a way I can override the devise mail settings to be the same as selected in spree_mail_settings admin?

Send Testmail Text Broken

After installing into an existing Spree application via openjaf's fork for Spree 2.3.0.beta applications, I discovered this issue. See image below.

The Testmail button appears to be broken.

screen shot 2014-05-18 at 8 57 32 pm

Add to Rubygems

It would be nice if all spree_mail_settings would be added to Rubygems.org. Right now, installing this Gem via Github will result in dependency conflicts:

Bundler could not find compatible versions for gem "spree_backend":
  In snapshot (Gemfile.lock):
    spree_backend (= 3.0.9)

  In Gemfile:
    spree (~> 3.0.9) was resolved to 3.0.9, which depends on
      spree_backend (= 3.0.9)

    spree_mail_settings was resolved to 3.2.0.alpha, which depends on
      spree_backend (~> 3.2.0.alpha)

    spree_mail_settings was resolved to 3.2.0.alpha, which depends on
      spree_backend (~> 3.2.0.alpha)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Rails 5

Is this compatible with Rails 5? I'm getting this message when trying to bundle install

fatal: Needed a single revision
Revision 3-2-beta does not exist in the repository git://github.com/spree-contrib/spree_mail_settings.git. Maybe you misspelled it?```

No Mail Methods item in admin

ruby 2.7.2
rails 6.1.3
spree 4.2.0

Installation of this gem goes without a hitch. Restarted server. No 'Mail Methods' menu item appears in the admin menu. This is usually found in the configuration section.

compatible error with spree_auth_devise > 4.0

Can someone help me to find a fix. Trying to bundle install with :
"gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings" ,
in my gem file on spree version > 4.0 !

I got this compatible version error:
Bundler could not find compatible versions for gem "spree_auth_devise":
In snapshot (Gemfile.lock):
spree_auth_devise (= 4.0.0)
In Gemfile:
spree_auth_devise (~> 4.0)
spree_mail_settings was resolved to 3.3.0, which depends on
spree_auth_devise (>= 3.1.0, < 4.0)

Gem I use :
Using spree_core 4.0.3
Using spree_api 4.0.3
Using spree_backend 4.0.3
Using spree_cmd 4.0.3
Using spree_frontend 4.0.3
Using spree_sample 4.0.3
Using spree 4.0.3
Using spree_extension 0.0.9
Using spree_auth_devise 4.0.0
Using spree_gateway 3.6.7
Using spree_social 3.3.2

Thanks

gmail smtp server not work

Terminal log

Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/secure_connection_type"], ["LIMIT", 1]]
Sent mail to [email protected] (10256.9ms)
Date: Fri, 07 Apr 2017 12:22:36 +0300
From: [email protected]
To: [email protected]
Message-ID: [email protected]
Subject: =?UTF-8?Q?Spree_Demo_Site?=
=?UTF-8?Q?=D0=A2=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D0=BE=D0=B5?=
=?UTF-8?Q?
=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5?=
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_58e75a5c7108e_1c9e346765437559";
charset=UTF-8
Content-Transfer-Encoding: 7bit

`Deface: 1 overrides found for 'spree/admin/shared/sub_menu/_configuration'
Deface: 'mail_settings_admin_configurations_menu' matched 1 times with '[data-hook="admin_configurations_sidebar_menu"]'
Deface: [WARNING] No :original defined for 'mail_settings_admin_configurations_menu', you should change its definition to include:
:original => '41c9125ad4022e7dac858458620c2a141e4f49d0' '

Gemfile:

gem 'spree', '> 3.2.0'
gem 'spree_auth_devise', '
> 3.2.0.beta'
gem 'spree_gateway', '~> 3.2.0.beta'

gem 'spree_i18n', github: 'spree-contrib/spree_i18n'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings'

Could not find gem 'spree_backend (~> 3.1.0.beta) x86-mingw32', which is required by gem 'spree_mail_settings (>= 0) x86-mingw32', in any of the sources.

I am running spree 3-0-stable

I don't get why it is asking for spree 3.1.0.beta? That is not even out yet... and I don't want to use a bleeding edge version. Any way I can make this work?

Is there maybe an older/stable version of the spree_mail_settings gem that I can use that is compatible with spree 3-0-stable?

This was my error message:

Could not find gem 'spree_backend (~> 3.1.0.beta) x86-mingw32', which is
required by gem 'spree_mail_settings (>= 0) x86-mingw32', in any of the sources.

letter_opener incompatibility

I'm having trouble using letter_opener in development. spree_mail_settings is forcing ActionMailer::Base.delivery_method = :spree after config/environments/development.rb and initializers are loaded, so there's no easy way to override (just for development).

Zeitwerk::NameError

When ever i try to deploy the code i get this error:

rake stdout: Nothing written
rake stderr: rake aborted!
Zeitwerk::NameError: expected file /home/deploy/myappname/shared/bundle/ruby/2.6.0/bundler/gems/spree_mail_settings-405c2858f470/app/models/spree/app_configuration_decorator.rb to define constant Spree:: AppConfigurationDecorator, but didn't

Does anyone have any idea why would this happen?

Test emails works great but the real ones not

Hello!
I'm trying to use spree_mail_settings in my spree instance but i have one major problem with that - the test email is working as it should but the actual mails sent by the app during checkout/payment/shipment process are being sent properly. There are no any errors nor warnings, console log says that email has been sent but it's not (i can say that for 100% because it is not present in Mandrill's outbound page while the test ones are there).

I'm on master branch of spree and spree_mail_settings

Thanks in advance.

Configuration is ignored, mail is sent with default ActionMailer settings

Hello,

I have just updated my app bundle including the last version of 3.0 stable branch of spree_mail_settings.
It seems like ActionMailer is now trying to send emails with the default setting (localhost:25), no matter what is set in the config page.

Any suggestions?

This is my gemfile.lock:

GIT
remote: git://github.com/spree-contrib/better_spree_paypal_express.git
revision: 526d7f4f5bb9074b41b8d6ff38c47d01612ededf
branch: 3-0-stable
specs:
spree_paypal_express (3.0.0)
paypal-sdk-merchant (= 1.106.1)
spree_core (~> 3.0.0)

GIT
remote: git://github.com/spree-contrib/spree_editor.git
revision: 00c3db2d06f659e4bb7e600c62ef14e3c7158263
branch: 3-0-stable
specs:
spree_editor (3.0.5)
ckeditor (> 4.1.2)
spree_backend (
> 3.0.0)
tinymce-rails (~> 4.1.10)

GIT
remote: git://github.com/spree-contrib/spree_i18n.git
revision: 29c6a015dddcd78408d1ef4ac8f7f77bd0fc4335
branch: 3-0-stable
specs:
spree_i18n (3.0.5)
friendly_id-globalize
globalize (> 5.0.1)
i18n_data (
> 0.7.0)
kaminari-i18n (> 0.3.2)
rails-i18n (
> 4.0.1)
spree_core (~> 3.0.5)

GIT
remote: git://github.com/spree-contrib/spree_mail_settings.git
revision: d17f10b
branch: 3-0-stable
specs:
spree_mail_settings (3.0.0)
spree_backend (~> 3.0.0)

GIT
remote: git://github.com/spree-contrib/spree_print_invoice.git
revision: d59b21a8e4b5c2f57385074c9a49bfeb2498f4f0
branch: 3-0-stable
specs:
spree_print_invoice (3.0.0.beta)
prawn (> 1.0.0)
spree_core (
> 3.0.0)

GIT
remote: git://github.com/spree-contrib/spree_related_products.git
revision: 0fdb345315be15c66a706e419e5d153ff07850b3
branch: 3-0-stable
specs:
spree_related_products (3.2.0)
spree_backend (~> 3.0.0)

GIT
remote: git://github.com/spree-contrib/spree_static_content.git
revision: 80a74e1ad8e1843c6bfabcd700dc8edb84822fdd
branch: 3-0-stable
specs:
spree_static_content (3.0.1)
spree_core (~> 3.0.0)

GIT
remote: git://github.com/spree/spree.git
revision: 62f67c5e810c2d1cbdec6462718216661c08db43
branch: 3-0-stable
specs:
spree (3.0.7)
spree_api (= 3.0.7)
spree_backend (= 3.0.7)
spree_cmd (= 3.0.7)
spree_core (= 3.0.7)
spree_frontend (= 3.0.7)
spree_sample (= 3.0.7)
spree_api (3.0.7)
rabl (> 0.11.6)
spree_core (= 3.0.7)
versioncake (
> 2.3.1)
spree_backend (3.0.7)
bootstrap-sass (> 3.3)
jquery-rails (
> 4.1)
jquery-ui-rails (> 5.0)
select2-rails (= 3.5.9.1)
spree_api (= 3.0.7)
spree_core (= 3.0.7)
spree_cmd (3.0.7)
thor (
> 0.14)
spree_core (3.0.7)
activemerchant (> 1.47.0)
acts_as_list (
> 0.6)
awesome_nested_set (> 3.0.1)
cancancan (
> 1.10.1)
carmen (> 1.0.0)
deface (
> 1.0.0)
ffaker (> 1.16)
font-awesome-rails (
> 4.0)
friendly_id (> 5.1.0)
highline (
> 1.6.18)
json (> 1.7)
kaminari (
> 0.15, >= 0.15.1)
monetize (> 1.1)
paperclip (
> 4.2.0)
paranoia (> 2.1.0)
premailer-rails
rails (
> 4.2.2)
ransack (> 1.4.1)
responders
sprockets-rails (
> 2.0)
state_machines-activerecord (> 0.2)
stringex
truncate_html (= 0.9.2)
twitter_cldr (
> 3.0)
spree_frontend (3.0.7)
bootstrap-sass (>= 3.3.5.1, < 3.4)
canonical-rails (> 0.0.4)
jquery-rails (
> 4.1)
spree_api (= 3.0.7)
spree_core (= 3.0.7)
spree_sample (3.0.7)
spree_core (= 3.0.7)

GIT
remote: git://github.com/spree/spree_auth_devise.git
revision: 4d1328c93fc5fcbfcb95eb0bd68057b1e8768bbb
branch: 3-0-stable
specs:
spree_auth_devise (3.0.5)
devise (> 3.4.1)
devise-encryptable (= 0.1.2)
json
multi_json
spree_core (
> 3.0.0)

GIT
remote: git://github.com/spree/spree_gateway.git
revision: 59ac5bcacf948cbd194814db906e7546c3d9852c
branch: 3-0-stable
specs:
spree_gateway (3.0.0)
spree_core (~> 3.0.0)

GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actionmailer (4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
mail (> 2.5, >= 2.5.4)
rails-dom-testing (
> 1.0, >= 1.0.5)
actionpack (4.2.5)
actionview (= 4.2.5)
activesupport (= 4.2.5)
rack (> 1.6)
rack-test (
> 0.6.2)
rails-dom-testing (> 1.0, >= 1.0.5)
rails-html-sanitizer (
> 1.0, >= 1.0.2)
actionview (4.2.5)
activesupport (= 4.2.5)
builder (> 3.1)
erubis (
> 2.7.0)
rails-dom-testing (> 1.0, >= 1.0.5)
rails-html-sanitizer (
> 1.0, >= 1.0.2)
activejob (4.2.5)
activesupport (= 4.2.5)
globalid (>= 0.3.0)
activemerchant (1.47.0)
activesupport (>= 3.2.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0)
i18n (>= 0.6.9)
nokogiri (> 1.4)
activemodel (4.2.5)
activesupport (= 4.2.5)
builder (
> 3.1)
activerecord (4.2.5)
activemodel (= 4.2.5)
activesupport (= 4.2.5)
arel (> 6.0)
activesupport (4.2.5)
i18n (
> 0.7)
json (> 1.7, >= 1.7.7)
minitest (
> 5.1)
thread_safe (> 0.3, >= 0.3.4)
tzinfo (
> 1.1)
acts_as_list (0.7.2)
activerecord (>= 3.0)
addressable (2.4.0)
arel (6.0.3)
autoprefixer-rails (6.3.3.1)
execjs
awesome_nested_set (3.0.3)
activerecord (>= 4.0.0, < 5)
axlsx (2.0.1)
htmlentities (> 4.3.1)
nokogiri (>= 1.4.1)
rubyzip (
> 1.0.0)
bcrypt (3.1.11)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
byebug (8.2.2)
camertron-eprun (1.1.0)
cancancan (1.10.1)
canonical-rails (0.0.11)
rails (>= 3.1, < 5.0)
capistrano (3.4.0)
i18n
rake (>= 10.0.0)
sshkit (> 1.3)
capistrano-bundler (1.1.4)
capistrano (
> 3.1)
sshkit (> 1.2)
capistrano-rails (1.1.6)
capistrano (
> 3.1)
capistrano-bundler (> 1.1)
capistrano-rbenv (2.0.4)
capistrano (
> 3.1)
sshkit (> 1.3)
capistrano3-unicorn (0.2.1)
capistrano (
> 3.1, >= 3.1.0)
carmen (1.0.2)
activesupport (>= 3.0.0)
ckeditor (4.1.6)
cocaine
orm_adapter (> 0.5.0)
cldr-plurals-runtime-rb (1.0.1)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorize (0.7.7)
concurrent-ruby (1.0.1)
css_parser (1.3.7)
addressable
debug_inspector (0.0.2)
deface (1.0.2)
colorize (>= 0.5.8)
nokogiri (
> 1.6.0)
polyglot
rails (>= 3.1)
devise (3.4.1)
bcrypt (> 3.0)
orm_adapter (
> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (> 0.1)
warden (
> 1.2.3)
devise-encryptable (0.1.2)
devise (>= 2.1.0)
erubis (2.7.0)
exception_notification (4.1.4)
actionmailer (> 4.0)
activesupport (
> 4.0)
execjs (2.6.0)
ffaker (1.32.1)
font-awesome-rails (4.5.0.1)
railties (>= 3.2, < 5.1)
friendly_id (5.1.0)
activerecord (>= 4.0.0)
friendly_id-globalize (1.0.0.alpha2)
friendly_id (> 5.1.0, < 6.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
globalize (5.0.1)
activemodel (>= 4.2.0, < 4.3)
activerecord (>= 4.2.0, < 4.3)
highline (1.6.21)
htmlentities (4.3.4)
i18n (0.7.0)
i18n_data (0.7.0)
jbuilder (2.4.1)
activesupport (>= 3.0.0, < 5.1)
multi_json (
> 1.2)
jquery-rails (4.1.0)
rails-dom-testing (> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.5)
railties (>= 3.2.16)
json (1.8.3)
kaminari (0.16.3)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kaminari-i18n (0.3.2)
kaminari
rails
kgio (2.10.0)
libv8 (3.16.14.13)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.99.1)
mini_portile2 (2.0.0)
minitest (5.8.4)
monetize (1.4.0)
money (
> 6.7)
money (6.7.0)
i18n (>= 0.6.4, <= 0.7.0)
sixarm_ruby_unaccent (>= 1.1.1, < 2)
multi_json (1.11.2)
mysql2 (0.3.20)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (3.0.2)
nokogiri (1.6.7.2)
mini_portile2 (> 2.0.0.rc2)
orm_adapter (0.5.0)
paperclip (4.2.4)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (
> 0.5.5)
mime-types
paranoia (2.1.5)
activerecord (> 4.0)
paypal-sdk-core (0.2.10)
multi_json (
> 1.0)
xml-simple
paypal-sdk-merchant (1.106.1)
paypal-sdk-core (> 0.2.3)
pdf-core (0.2.5)
polyamorous (1.3.0)
activerecord (>= 3.0)
polyglot (0.3.5)
prawn (1.0.0)
pdf-core (
> 0.2.2)
ttfunk (> 1.1.1)
premailer (1.8.6)
css_parser (>= 1.3.6)
htmlentities (>= 4.0.0)
premailer-rails (1.9.0)
actionmailer (>= 3, < 5)
premailer (
> 1.7, >= 1.7.9)
rabl (0.11.8)
activesupport (>= 2.3.14)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5)
actionmailer (= 4.2.5)
actionpack (= 4.2.5)
actionview (= 4.2.5)
activejob (= 4.2.5)
activemodel (= 4.2.5)
activerecord (= 4.2.5)
activesupport (= 4.2.5)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5)
sprockets-rails
rails-assets-datetimepicker (2.5.1)
rails-assets-jquery (>= 1.7.2)
rails-assets-jquery-mousewheel (>= 3.1.13)
rails-assets-php-date-formatter (>= 1.3.3)
rails-assets-jquery (2.2.1)
rails-assets-jquery-mousewheel (3.1.13)
rails-assets-jquery (>= 1.2.2)
rails-assets-php-date-formatter (1.3.3)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (
> 2.0)
rails-i18n (4.0.8)
i18n (> 0.7)
railties (
> 4.0)
railties (4.2.5)
actionpack (= 4.2.5)
activesupport (= 4.2.5)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.16.0)
rake (11.0.1)
ransack (1.4.1)
actionpack (>= 3.0)
activerecord (>= 3.0)
activesupport (>= 3.0)
i18n
polyamorous (> 1.1)
rdoc (4.2.2)
json (
> 1.4)
ref (2.0.0)
responders (2.1.1)
railties (>= 4.2.0, < 5.1)
rubyzip (1.0.0)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.1)
json (
> 1.7, >= 1.7.7)
rdoc (> 4.0)
select2-rails (3.5.9.1)
thor (
> 0.14)
sixarm_ruby_unaccent (1.1.1)
spring (1.6.4)
sprockets (3.5.2)
concurrent-ruby (> 1.0)
rack (> 1, < 3)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.11)
sshkit (1.8.1)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
state_machines (0.4.0)
state_machines-activemodel (0.3.0)
activemodel (
> 4.1)
state_machines (>= 0.4.0)
state_machines-activerecord (0.3.0)
activerecord (> 4.1)
state_machines-activemodel (>= 0.3.0)
stringex (2.6.0)
therubyracer (0.12.2)
libv8 (
> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
tinymce-rails (4.1.10)
railties (>= 3.1.1)
truncate_html (0.9.2)
ttfunk (1.1.1)
turbolinks (2.5.3)
coffee-rails
twitter_cldr (3.2.1)
camertron-eprun
cldr-plurals-runtime-rb (> 1.0.0)
json
tzinfo
tzinfo (1.2.2)
thread_safe (
> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
unicorn (4.9.0)
kgio (> 2.6)
rack
raindrops (
> 0.7)
versioncake (2.3.1)
actionpack (>= 3.2)
activesupport (>= 3.2)
railties (>= 3.2)
tzinfo
warden (1.2.6)
rack (>= 1.0)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
xml-simple (1.1.5)

PLATFORMS
ruby

DEPENDENCIES
axlsx
byebug
capistrano (> 3.4.0)
capistrano-bundler (
> 1.1.4)
capistrano-rails (> 1.1.3)
capistrano-rbenv (
> 2.0.3)
capistrano3-unicorn (> 0.2.1)
coffee-rails (
> 4.1.0)
exception_notification
jbuilder (> 2.0)
jquery-rails
mysql2 (
> 0.3.20)
rails (= 4.2.5)
rails-assets-datetimepicker!
sass-rails (> 5.0)
sdoc (
> 0.4.0)
spree!
spree_auth_devise!
spree_editor!
spree_gateway!
spree_i18n!
spree_mail_settings!
spree_paypal_express!
spree_print_invoice!
spree_related_products!
spree_static_content!
spring
sqlite3
therubyracer
turbolinks
uglifier (>= 1.3.0)
unicorn (> 4.9.0)
web-console (
> 2.0)

BUNDLED WITH
1.11.2

.deliver_now does not work in Spree 3.0 app

I recently upgraded to Spree 3.0 and i discovered that the test emails don't work. When i click the "Send Test Mail" button, i receive this error: Test Mail error: undefined method `deliver_now' for #Mail::Message:0x007f8e05194278. When i change the.deliver_nowmethod to``.deliver`` in the mail_methods_controller, it works correctly.

I see similar behavior in my Spree site when attempting to send a shipment mailer: the .deliver_later method throws an error but it works when i change it to .deliver. So this may be an issue that affects Spree on a larger scale.

I am using Rails 4.2.1. This issue may not be specific to the spree_mail_settings gem but it is affecting my ability to use the gem so i posted it. I've also posted a question in the Spree user group: https://groups.google.com/d/msg/spree-user/Q3-Bw-gsH3w/2f3T1gBPpnUJ

Facing issue SocketError (getaddrinfo: Name or service not known)

Hello I have included given gem in my gemfile:

gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: '3-0-stable'

and further done settings in spree-admin in configuration < Mail method Settings
enter image description here

When I place order it gives me error

2016-05-10T07:16:32.164733+00:00 app[web.1]:
2016-05-10T07:16:32.164734+00:00 app[web.1]: [ActiveJob]
[ActionMailer::DeliveryJob] [9526835c-d5e7-4434-b716-a98b68b75da1]
Performed ActionMailer::DeliveryJob from Inline(mailers) in 471.29ms
2016-05-10T07:16:32.164735+00:00 app[web.1]: Completed 500 Internal
Server Error in 1395ms (ActiveRecord: 179.9ms)
2016-05-10T07:16:32.168574+00:00 app[web.1]:
2016-05-10T07:16:32.168583+00:00 app[web.1]: SocketError (getaddrinfo:
Name or service not known): 2016-05-10T07:16:32.168583+00:00
app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:541:in
initialize' 2016-05-10T07:16:32.168584+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:541:inopen'
2016-05-10T07:16:32.168584+00:00 app[web.1]:
vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:541:in tcp_socket' 2016-05-10T07:16:32.168585+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:551:inblock in
do_start' 2016-05-10T07:16:32.168585+00:00 app[web.1]:
vendor/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:88:in block in timeout' 2016-05-10T07:16:32.168586+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:98:incall'
2016-05-10T07:16:32.168586+00:00 app[web.1]:
vendor/ruby-2.2.4/lib/ruby/2.2.0/timeout.rb:98:in timeout' 2016-05-10T07:16:32.168587+00:00 app[web.1]: vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:550:indo_start'
2016-05-10T07:16:32.168587+00:00 app[web.1]:
vendor/ruby-2.2.4/lib/ruby/2.2.0/net/smtp.rb:520:in start' 2016-05-10T07:16:32.168587+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113:indeliver!' 2016-05-10T07:16:32.168588+00:00 app[web.1]:
vendor/bundle/ruby/2.2.0/bundler/gems/spree_mail_settings-d416a1e35589/lib/spree/core/mail_method.rb:8:in
`deliver!' 2016-05-10T07:16:32.168588+00:00 app[web.1]:

Please guide me why I am facing this issue and what settings are required.

"Send Mails As" setting is ignored

The value in "Send Mails As" does nothing and the value in general settings "Mail From Address" is always used instead. The send mail as field should update the value in general settings.

Could not find gem 'spree_backend (~> 3.1.0.beta)', which is required by gem 'spree_mail_settings', in any of the sources.

Bundler could not find compatible versions for gem "spree_backend":
In Gemfile:
spree_mail_settings was resolved to 2.2.0, which depends on
spree_backend (~> 3.1.0.beta)

Could not find gem 'spree_backend (~> 3.1.0.beta)', which is required by gem 'spree_mail_settings', in any of the sources.

source 'https://rubygems.org'

Bundle edge Rails instead: gem 'rails', github: 'rails/rails'

gem 'rails', '4.2.5'

Use postgresql as the database for Active Record

gem 'pg', '~> 0.15'

Use SCSS for stylesheets

gem 'sass-rails', '~> 5.0'

Use Uglifier as compressor for JavaScript assets

gem 'uglifier', '>= 1.3.0'

Use CoffeeScript for .coffee assets and views

gem 'coffee-rails', '~> 4.1.0'

See https://github.com/rails/execjs#readme for more supported runtimes

gem 'therubyracer', platforms: :ruby

Use jquery as the JavaScript library

gem 'jquery-rails'

Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks

gem 'turbolinks'

Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder

gem 'jbuilder', '~> 2.0'

bundle exec rake doc:rails generates the API under doc/api.

gem 'sdoc', '~> 0.4.0', group: :doc

Use ActiveModel has_secure_password

gem 'bcrypt', '~> 3.1.7'

Use Unicorn as the app server

gem 'unicorn'

Use Capistrano for deployment

gem 'capistrano-rails', group: :development

group :development, :test do

Call 'byebug' anywhere in the code to stop execution and get a debugger console

gem 'byebug'
end

group :development do

Access an IRB console on exception pages or by using <%= console %> in views

gem 'web-console', '~> 2.0'

Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring

gem 'spring'
end

gem 'solidus'
gem 'solidus_auth_devise'
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master'

No tls setting

It's possible to pass tls option to ActionMailer settings, but this extension doesn't have such ability:

config.action_mailer.smtp_settings = {
  ...  
  tls: true,
  ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.