Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • 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

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

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

Content

Expand project menu
Support Installation & Updates
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. Support Installation & Updates
  5. [Resolved] Email issue, Ruby error?

[Resolved] Email issue, Ruby error?

Added by Ed Ol about 11 years ago

Hello,

I believe I configured my email settings correctly, but I keep having this issue:

An error occurred while sending mail (Failure in opening uri #<URI::Generic:0x0000000a62e3c8 URL:/home/openproject/openproject/tmp/letter_opener/1405003506_e3fc9e1/rich.html> with options {}: Can't convert URI::Generic into String.)

I’ve tried with “smtp_enable_starttls_auto” set to true or false, but still nothing.. Tried smtp_authentification with plain and login and tried smtp_openssl_verify_mode true/false too

Thanks for your help.

Ed


Replies (3)

RE: Email issue, Ruby error? - Added by Philipp Tessenow about 11 years ago

Hi Ed,

how are you running OpenProject?
The error seems to be produced by letter_opener which should only ever run in development mode (your server should run in production mode).

To start OpenProject in production mode, start the server with a prepended “RAILS_ENV=production” (as in RAILS_ENV=production bundle exec rails server) or, even better, use a proper rails server like passenger or unicorn.

I hope this solves your issue.

cheers,
tessi

RE: Email issue, Ruby error? - Added by Ed Ol about 11 years ago

Hello Tessi,

I was running it with Thin (bundle exec thin start) but I switched to Unicorn now and it’s still not working.
Maybe I have another problem because I can’t seem to run it in production, it keeps giving me errors reaped #<Process:Status: pid 15644 exit 1>. But that’s another topic though I’ll have to search for answers. I can’t even precompile assets, I only get a bunch of errors.

Ed

RE: Email issue, Ruby error? - Added by Ed Ol about 11 years ago

Hello,

Just wanted to thank you for your reply, that was the problem. I can now send emails!
Burt for my curiosity, why letter_opener can’t run in production mode?

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