user_nameもpasswordも入れてるのにエラーが出続けた場合の対処法です
user_nameにはapikyとstringで入力すると解決できます
1 2 3 4 5 6 7 8 9 10 | ActionMailer::Base.smtp_settings = { :user_name => 'apikey', # ここは'apikey'と入力!!!!先程生成したkeyではありません :password => 'your_sendgrid_api_key', # ここに作成したapikeyを入力!! :domain => 'yourdomain.com', :address => 'smtp.sendgrid.net', :port => 587, :authentication => :plain, :enable_starttls_auto => true } |