ROR3アプリケーションをROR4に移行しています。そして、私はこれに非常に慣れておらず、移行とともに学んでいます。私は最初のステップで立ち往生しましたそれ自体私はエラーが発生しています
Net::SMTPAuthenticationError in ClientsController#create
534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtq6
これがdevelopment.rbでの私の設定です。
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => Rails.application.secrets.email_address,
:password => Rails.application.secrets.email_password,
:authentication => "plain",
:enable_starttls_auto => true }
エラーが発生する場所は
@ client.save。
Apartment::Tenant.create(@client.subdomain)
Apartment::Tenant.switch(@client.subdomain)
@client.save
redirect_to new_user_session_url(subdomain: @client.subdomain)
else
render action: 'new'
RORに取り組んでいる人を誰かが助けることができますか?
これと同じ問題が発生しました。gmail
アカウントのセキュリティ設定を確認して有効にしてください"Access for less secure apps" from www.google.com/settings/security."
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加