This problem arises because you don’t have a local email server to receive your emails.
The first step would be to Install the mailcatcher gem in order to test the setup in development.
You will be using it as a SMTP server to catch all the incoming mails and display them on http://localhost:1080/:
Just run in the terminal “gem install mailcatcher” in the console.
You will find an SMTP server running on port 1025 catching emails and displaying them on HTTP port 1080
Add spree mail settings gem to your Gemfile:-
gem 'spree_mail_settings', github: 'spree-contrib/spree_mail_settings', branch: 'master‘
Further, go to “Spree admin panel” and configure it. These settings will work perfectly for you without any code writing.
Then click on “Send test mail”
You will receive the an email on your local host.
Now your problem is solved.
If you have any further doubts, do comment below or you can follow us on twitter (@infigicdigital) as well..!! . You can even drop in a mail at email@example.com. Infigic is a spree commerce development company specializing in custom spree commerce development, spree extension development solutions.