Not able to deliver the mail in canvas lms? What configuration setting i am missing?

1.1k views Asked by At

This is my outgoing_mail.yml files If click on the forgot password link It is showing in the delayed_job.log My email is deliver got stuck please help me.

production: 
    address: "smtp.gmail.com" 
    port: "587" 
    user_name: "[email protected]" 
    password: "password" 
    authentication: "plain" # plain, login, or cram_md5 
    domain: "domain_name.com" 
    outgoing_address: "[email protected]" 
    default_name: "Instructure Canvas"
2

There are 2 answers

0
Cryptex Technologies On BEST ANSWER

My SMTP settings are right but the in site admin settings there is feature option section there is an option "Use remote service for notifications" is No so is if you use remote service like mailer etc. this option turns into off. And It's working fine.

feature option settings

1
Anand On

In config/environments/production.rb

  config.action_mailer.delivery_method = :smtp
  config.action_mailer.default_url_options = { host:'your host', port: 'xxx' }
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.default :charset => "utf-8"
  config.action_mailer.smtp_settings = {
      :address => "smtp.gmail.com",
      :port => 587,
      :domain => 'abc.com',
      :user_name => "[email protected]",
      :password => "xxxx",
      :authentication => :plain,
      :enable_starttls_auto => true
  }