代码之家  ›  专栏  ›  技术社区  ›  Cryptex Technologies

无法在画布lms中传递邮件?我缺少什么配置设置?

  •  0
  • Cryptex Technologies  · 技术社区  · 6 年前

    这是我的传出邮件.yml文件 如果单击忘记密码链接,它将显示在delayed\u 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"
    
    2 回复  |  直到 6 年前
        1
  •  2
  •   Cryptex Technologies    6 年前

    我的SMTP设置是正确的,但在网站管理设置有功能选项部分有一个选项“使用远程服务通知”是没有的,所以如果你使用远程服务,如邮件等。这个选项变成关闭。 而且效果很好。

    feature option settings

        2
  •  1
  •   Anand    6 年前

    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
      } 
    
    推荐文章