Giter Site home page Giter Site logo

Comments (3)

themsaid avatar themsaid commented on July 20, 2024

I wonder if that's a good idea, what if the code sends multiple emails after a specific action?

However the concept itself is interesting, Is it possible to open a web browser via CLI? What if I'm using Vagrant or so, how do I detect the host's default browser?

from laravel-mail-preview.

franzliedke avatar franzliedke commented on July 20, 2024

It would need to be an optional feature...

Is it possible to open a web browser via CLI?

It must be, that's why I referenced the letter_opener gem.

Not sure about Vagrant, that is probably not possible.

from laravel-mail-preview.

themsaid avatar themsaid commented on July 20, 2024

It's mentioned that a library called launchy is used: https://github.com/copiousfreetime/launchy.

There are some examples out there on how to launch the default web browser, but every platform has a different command (xdg-open for Linux, start for Windows, and open for OSX). So yeah detecting the OS and firing the right command might does the job.

Maybe I'll look into implementing this sometime later. If you can help I'd really appreciate that.

from laravel-mail-preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.