- The web application has been built with Rails. This web application completes the following task.
The above open source gems(library equivalent of Ruby) have been used to complete the task.
- Active Admin - Active admin has been used to build admin's interface.
- Delayed Job - Delayed Job is being used as the persistent backend for running queued jobs.
- Devise - Devise provides authentication solution in Rails.
- Kindly follow the installation guide provided in the repository to set up the web application.
- Change the
user_name
andpassword
in the environment file that you are using. For ex, if you are running in development mode, navigate toconfig/environments/development.rb
, an`d change the password in:
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
port: 587,
domain: 'gmail.com',
user_name: '<Change email here>',
password: '<Change passowrd here>',
authentication: 'plain',
enable_starttls_auto: true
}
- Change the
from
option to the email to be used inapp/mailers/application_mailer.rb
.
default from: <email>
- Open a new terminal and navigate to project directory.
- Run the following command:
rake jobs:work
- The above command will run all the enqueued jobs.
- Navigate to "BASE_URL/admin/users".
- Select the users to whom the email is to be sent.
- Click on
Batch Actions
, and selectEmail Selected Users
option from the dropdown. - On clicking
Email Selected Users
, an alert dialog appears which acceptssubject
of the email,title
of the email andbody
of the email. - After entering the values, click on
Ok
and the emails will be sent to all the selected users.