File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,31 @@ VirtualBoxの画面にマウスカーソルをあわせてクリックするだ
234
234
235
235
再発行したパスワードのメール送信の機能などを使うために必要です。
236
236
237
- (設定方法についての説明は準備中です)
237
+ config/environments/production.rb を以下のように変更します。
238
+
239
+ ```
240
+ Rails.application.configure do
241
+ # 中略
242
+
243
+ # hostオプションはEnjuを動作させているホストのホスト名を指定
244
+ config.action_mailer.default_url_options = {host: 'enju.example.jp'}
245
+
246
+ # SMTPサーバの設定。不要な設定はコメントアウトできます
247
+ # 設定例は以下も参照してください
248
+ # http://railsguides.jp/action_mailer_basics.html#gmail用のaction-mailer設定
249
+ config.action_mailer.delivery_method = :smtp
250
+ config.action_mailer.smtp_settings = {
251
+ address: 'yoursmtpserver.example.jp',
252
+ port: 25,
253
+ domain: 'example.jp',
254
+ user_name: 'smtpusername',
255
+ password: 'smtppassword',
256
+ authentication: 'plain',
257
+ enable_starttls_auto: true
258
+ }
259
+ end
260
+ ```
261
+
238
262
{::comment}関連issue#799{:/comment}
239
263
240
264
{::comment}
You can’t perform that action at this time.
0 commit comments