Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. [SOLVED] Not sending emails: No error in logs

[SOLVED] Not sending emails: No error in logs

Added by A. Lepe about 10 years ago

Hi! I’m running version 4.0.9.
During the installation I entered my SMTP settings.

I have tried several times with “Send a test email” and it replies:
“An email was sent to user@example.com”

However looking at the logs ($ openproject-ce logs —tail):

Started GET "/admin/test_email" for 127.0.0.1 at 2015-04-15 20:11:58 +0900
Processing by AdminController#test_email as HTML
  Rendered user_mailer/test_mail.html.erb within layouts/user_mailer (0.0ms)
  Rendered user_mailer/test_mail.text.erb within layouts/user_mailer (0.0ms)

Sent mail to  (8.0ms)
Redirected to http://example.com/settings/edit?tab=notifications
...

No email is displayed there (is empty).
As I’m using mandrillapp, I can confirm that no email has been sent through their services.

Any help is appreciated. Thanks!

UPDATE:

I followed this thread: https://community.openproject.org/topics/4366 , and all the settings were pretty much the same as I have. I enabled STARTTLS in this way:
sudo openproject-ce config:set SMTP_ENABLE_STARTTLS_AUTO=true

Now the console command ActionMailer::Base.smtp_settings displays:

{:address=>"smtp.mandrillapp.com", :port=>"587", :domain=>"example.com", :authentication=>"login", :user_name=>"user@example.com", :password=>"xxxxxxx", :enable_starttls_auto=>"true", :openssl_verify_mode=>nil}

I have tried with domain = mandrillapp.com as well, and both has the same outcome: it seems successful but it is not (“Sent mail to” at the logs still empty and not mail received by mandrillapp.com).

NOTE: those SMTP settings has been tried before in the same server in another application, and they work.

What else I can do?


Replies (3)

RE: Not sending emails: No error in logs - Added by Markus Kahl about 10 years ago

My perhaps the test email itself is broken? Did you try sending a normal email? I.e. enable ‘notifiy me of the things I do’ in your account page and create a work package?

RE: Not sending emails: No error in logs - Added by Karsten Gallinowski about 10 years ago

Hi,

can you please run openproject-ce run check and post the outcome here. At least everything what is related to email. Right now I’m missing a error message to get to the bottom of this.

Regards,
Karsten

RE: Not sending emails: No error in logs - Added by A. Lepe about 10 years ago

I think Markus is right! , this are my findings:

Following Karsten’s suggestion:
This is the output:
[ok] MySQL configuration is working [ok] Web server is running [ok] openproject server is running [ok] openproject background job worker is running sending test email using SMTP... [ok] test email sent to infoexample.com@

I received that email successfully.

Then I did what Markus suggested and I received the notification to my personal email.

However, when I click on the " Send a test email" at the administration settings, it doesn’t sent anything but it display: “An email was sent to info@…”. Where I can file that bug?

I think it is not that important now, as it seems the mailing system is working properly.

Thanks for your help! :)

  • (1 - 3/3)
Loading...