From 4374ef7683098821687552843693456ed7db21db Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 18 Dec 2013 00:30:07 -0800 Subject: [PATCH] updated sample --- README.md | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index b8fe1ba..b817c19 100644 --- a/README.md +++ b/README.md @@ -132,29 +132,8 @@ WARNING: If you launch multiple images, **make sure** you setup iptables or some ### Email setup -For a Discourse instance to function properly Email must be setup. You can use an after_code hook in your template to setup mail, for example this will setup email integration with mandrill (which offer free smtp services). - -``` - - replace: - filename: /var/www/discourse/config/environments/production.rb - from: /end/ - direction: reverse - to: | - config.action_mailer.delivery_method = :smtp - config.action_mailer.smtp_settings = { - :address => 'smtp.mandrillapp.com', - :port => 587, - :domain => 'mydomain.com', - :user_name => 'user@example.com', - :password => 'some_password', - :authentication => 'login', - :enable_starttls_auto => true - } - end - -``` - -The docker image does not contain postfix, exim or another mta, it was omitted cause it is very tricky to setup perfectly. +For a Discourse instance to function properly Email must be setup. Use the SMTP_URL env var to set your SMTP address, see sample templates for an example. +The docker image does not contain postfix, exim or another MTA, it was omitted cause it is very tricky to setup perfectly. ### Troubleshooting -- 2.25.1