【问题标题】:Not able to deliver the mail in canvas lms? What configuration setting i am missing?无法在画布 lms 中投递邮件?我缺少什么配置设置?
【发布时间】:2018-09-19 12:44:45
【问题描述】:

这是我的出站邮件.yml 文件 如果点击忘记密码链接它显示在delayed_job.log 我的电子邮件发送卡住了,请帮助我。

production: 
    address: "smtp.gmail.com" 
    port: "587" 
    user_name: "xxxxxx@gmail.com" 
    password: "password" 
    authentication: "plain" # plain, login, or cram_md5 
    domain: "domain_name.com" 
    outgoing_address: "xxxxxx@gmail.com" 
    default_name: "Instructure Canvas"

【问题讨论】:

  • 检查您在 config/environments/production.rb 中的邮件配置,并在下面给出答案
  • 你曾经在画布 lms 上工作过吗? @Gabbar

标签: ruby-on-rails ruby canvas-lms


【解决方案1】:

我的 SMTP 设置是正确的,但在站点管理员设置中有一个功能选项部分,有一个选项“使用远程服务通知”是否,如果您使用邮件程序等远程服务,则此选项变为关闭。 它工作正常。

【讨论】:

    【解决方案2】:

    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 => "xxxx@mail.com",
          :password => "xxxx",
          :authentication => :plain,
          :enable_starttls_auto => true
      } 
    

    【讨论】:

    • 好的,让我检查一下,一旦我已经尝试过类似的解决方案,但 id 不起作用感谢您宝贵的时间@Gabbar
    猜你喜欢
    • 2010-12-24
    • 2019-05-30
    • 2019-07-01
    • 2021-09-19
    • 2017-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-04
    相关资源
    最近更新 更多