Project

General

Profile

Email delivery is not configured

Added by noriaki takamizawa almost 15 years ago

Hello

I'd like to know how to figure out a problem below.

Email delivery is not configured, and notifications are disabled.
Configure your SMTP server in config/email.yml and restart the application to enable them.

I tried to modify configure file, config/environment.rb.
I changed 'config.action_mailer.perform_deliveries = false' to true.

Nonetheless, the situation won't change as of now.

If you have any answer, could you tell me how?

Regards


Replies (6)

RE: Email delivery is not configured - Added by Eric Davis almost 15 years ago

noriaki takamizawa wrote:

Email delivery is not configured, and notifications are disabled.
Configure your SMTP server in config/email.yml and restart the application to enable them.

I tried to modify configure file, config/environment.rb.
I changed 'config.action_mailer.perform_deliveries = false' to true.

Did you configure config/email.yml? You don't need to change anything in config/environment.rb.

Eric

RE: Email delivery is not configured - Added by noriaki takamizawa almost 15 years ago

Thanks for replying.

I forgot informing you that I configured config/email.yml.

But it didn't work.

How can I do that? I'd appriciate if you give some advices.

Takamizawa

RE: Email delivery is not configured - Added by noriaki takamizawa almost 15 years ago

Do all of you have any idea?

If you need another information, please let me know.

Takamizawa

RE: Email delivery is not configured - Added by Thomas Pihl almost 15 years ago

Maybe a longshot, but did you check permissions om email.yml (and renamed it to email.yml from default name)?

/T

RE: Email delivery is not configured - Added by narriral lemons almost 15 years ago

Hi,

I have the same problem. I did check the permissions and it was wrong, are the permissions www-data for that file (email.yml)? I've changed the permissions and restarted the application using the command mongrel_rails cluster::restart. But it's not working yet.

Any ideas? I am using exim4 and it works well for other applications.

My enviroment.rb:

config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.raise_delivery_errors = true

And mail.yml

production:
delivery_method: :smtp
smtp_settings:
address: 127.0.0.1
port: 25
domain: mydomain.com
authentication: :none

development:
delivery_method: :smtp
smtp_settings:
address: localhost
port: 25
domain: mydomain.com
authentication: :none

Any guesses are welcome.
Thanks.

RE: Email delivery is not configured - Added by narriral lemons almost 15 years ago

Now I can see the page "*email notifications*".
I solved that issue killing manually all the processes of mongrel_rails. Then I restarted the application without mongrel - using ruby script/server -e production -d; and also I configured apache2 again to listen :3000 and redirect that to port 80.

However, even emails notifications seems to be working, it is not. When i try to recover passwd, Redmine answers:

An email with instructions to choose a new password has been sent to you.

But the email never gets in my mailbox.

Does anyone have an advice to solve this problem?

    (1-6/6)