fgrehm / letter_opener_web

A web interface for browsing Ruby on Rails sent emails
MIT License
711 stars 111 forks source link

Getting "xprop: unable to open display" while sending an email in the docker. #130

Open jigarbhatt2711 opened 7 months ago

jigarbhatt2711 commented 7 months ago

Hello

I am using a gem 'letter_opener_web' in our application.

When we are running a script and trying to send an email at that time, we are getting the following error in the console.


xprop:  unable to open display ''

xprop:  unable to open display ''

xdg-open /.../tmp/letter_opener/1708508975_9987023_e9d40c9/rich.html

It does not affect the existing functionality. But we are getting the above text message on the console.

Note: This issue we are getting while the application running in the docker.

fgrehm commented 4 months ago

Hey @jigarbhatt2711! Have you tried setting the delivery method to letter_opener_web as described in the readme?

I haven't used this gem in a while but had to do that in the past back when I was using Vagrant / Docker for my development envs