Skip to content

Commit 8688f85

Browse files
Fix: rails#52708 Removed credentials from action mailer config documentation.
1 parent 830ad93 commit 8688f85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/action_mailer_basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,8 @@ config.action_mailer.smtp_settings = {
893893
address: 'smtp.gmail.com',
894894
port: 587,
895895
domain: 'example.com',
896-
user_name: '<username>',
897-
password: '<password>',
896+
user_name: Rails.application.credentials.dig(:smtp, :user_name),
897+
password: Rails.application.credentials.dig(:smtp, :password),
898898
authentication: 'plain',
899899
enable_starttls: true,
900900
open_timeout: 5,

0 commit comments

Comments
 (0)