繁体   English   中英

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

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

这是我的outgoing_mail.yml文件。如果单击“忘记密码”链接,则显示在delay_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

  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
  } 

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

功能选项设置

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM