diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb index cd490df12..3a2c7ed6f 100644 --- a/app/models/admin_dashboard_data.rb +++ b/app/models/admin_dashboard_data.rb @@ -32,7 +32,7 @@ class AdminDashboardData failing_emails_check, default_logo_check, contact_email_check, - send_email_with_gmail_check, + send_consumer_email_check, title_check ].compact end @@ -122,8 +122,8 @@ class AdminDashboardData I18n.t('dashboard.title_nag') if SiteSetting.title == SiteSetting.defaults[:title] end - def send_email_with_gmail_check - I18n.t('dashboard.gmail_for_email_warning') if Rails.env == 'production' and ActionMailer::Base.smtp_settings[:address] =~ /gmail\.com/ + def send_consumer_email_check + I18n.t('dashboard.consumer_email_warning') if Rails.env == 'production' and ActionMailer::Base.smtp_settings[:address] =~ /gmail\.com|live\.com|yahoo\.com/ end end \ No newline at end of file diff --git a/config/locales/server.de.yml b/config/locales/server.de.yml index 81d4c66c6..524060585 100644 --- a/config/locales/server.de.yml +++ b/config/locales/server.de.yml @@ -387,7 +387,7 @@ de: contact_email_missing: "Du hast noch keine Kontaktmail für die Seite hinterlegt. Bitte hinterlege diese in den Einstellungen (siehe contact_email)." contact_email_invalid: "Die Kontaktmail der Seite ist ungültig. Bitte bearbeite diese in den Einstellungen (siehe contact_email)." title_nag: "Der Titel der Seite wurde noch nicht angepasst. Bitte bearbeite diesen in den Einstellungen." - gmail_for_email_warning: "Deine Seite verwendet Gmail um Mails zu senden. Gmail hat eine Limite zum Senden von Mails. Um die Mail-Zustellung zu gewährleisten, solltest du einen anderen Mail Service in Erwägung ziehen." + consumer_email_warning: "Deine Seite verwendet Gmail um Mails zu senden. Gmail hat eine Limite zum Senden von Mails. Um die Mail-Zustellung zu gewährleisten, solltest du einen anderen Mail Service in Erwägung ziehen." content_types: education_new_reply: diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 9e689872a..de35b12f8 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -388,7 +388,7 @@ en: contact_email_missing: "You haven't provided a contact email for your site. Please update contact_email in the Site Settings." contact_email_invalid: "The site contact email is invalid. Please update contact_email in the Site Settings." title_nag: "The title Site Setting is still set to the default value. Please update it with your site's title in the Site Settings." - gmail_for_email_warning: "Your site is configured to use Gmail to send email. Gmail limits how many emails you can send. Consider using an email service provider to ensure email deliverability." + consumer_email_warning: "Your site is configured to use Gmail (or another consumer email service) to send email. Gmail limits how many emails you can send. Consider using an email service provider like mandrill.com to ensure email deliverability." content_types: education_new_reply: diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml index d112fd03c..a0b96e3e7 100644 --- a/config/locales/server.fr.yml +++ b/config/locales/server.fr.yml @@ -394,7 +394,7 @@ fr: contact_email_missing: "Vous n'avez pas renseigné d'email de contact pour votre site. Merci de mettre à jour le paramètre de site : contact_email." contact_email_invalid: "L'email de contact du site est invalide. Merci de mettre à jour le paramètre de site : contact_email." title_nag: "Le titre de votre site est toujours à sa valeur par défaut. Merci de le modifier dans les paramètres du site." - gmail_for_email_warning: "Votre site est configuré pour envoyer les emails en utilisant Gmail. Gmail limite le nombre d'emails que vous pouvez envoyer. Nous vous conseillons d'utiliser un autre service d'envoi d'emails afin d'assurer une meilleure délivrabilité." + consumer_email_warning: "Votre site est configuré pour envoyer les emails en utilisant Gmail. Gmail limite le nombre d'emails que vous pouvez envoyer. Nous vous conseillons d'utiliser un autre service d'envoi d'emails afin d'assurer une meilleure délivrabilité." content_types: education_new_reply: diff --git a/config/locales/server.nl.yml b/config/locales/server.nl.yml index b808d2b2c..c7d0c2e82 100644 --- a/config/locales/server.nl.yml +++ b/config/locales/server.nl.yml @@ -391,7 +391,7 @@ nl: contact_email_missing: "Je hebt nog geen contactadres opgegeven voor je site. Werk contact_email bij in de Instellingen." contact_email_invalid: "Je hebt een ongeldig contactadres opgegeven voor je site. Werk contact_email bij in de Instellingen." title_nag: "Je hebt nog geen title ingesteld voor je site. Geef een titel voor je site op in de Instellingen." - gmail_for_email_warning: "Je site is ingesteld om Gmail te gebruiken voor het versturen van mails. Gmail heeft limieten voor het aantal mails dat je kan versturen. Overweeg om een andere e-mailprovider te gebruiken om er zeker van te zijn dat mails aankomen." + consumer_email_warning: "Je site is ingesteld om Gmail te gebruiken voor het versturen van mails. Gmail heeft limieten voor het aantal mails dat je kan versturen. Overweeg om een andere e-mailprovider te gebruiken om er zeker van te zijn dat mails aankomen." content_types: education_new_reply: diff --git a/spec/models/admin_dashboard_data_spec.rb b/spec/models/admin_dashboard_data_spec.rb index 7ff5127fe..0593a4064 100644 --- a/spec/models/admin_dashboard_data_spec.rb +++ b/spec/models/admin_dashboard_data_spec.rb @@ -121,8 +121,8 @@ describe AdminDashboardData do end end - describe 'send_email_with_gmail_check' do - subject { AdminDashboardData.new.send_email_with_gmail_check } + describe 'send_consumer_email_check' do + subject { AdminDashboardData.new.send_consumer_email_check } it 'returns nil if gmail.com is not in the smtp_settings address' do ActionMailer::Base.stubs(:smtp_settings).returns({address: 'mandrillapp.com'})