Giter Site home page Giter Site logo

Comments (7)

themsaid avatar themsaid commented on July 20, 2024

Currently not, the package acts as your only mail driver so it stops sending emails and saves them on disk instead, but it's quite useful to include such a feature, I'll give it a shot soon and get back to you with the results.

I'll be releasing a new version of the package during the next few days, hopefully that'll be included.

from laravel-mail-preview.

JayBizzle avatar JayBizzle commented on July 20, 2024

👍

from laravel-mail-preview.

themsaid avatar themsaid commented on July 20, 2024

Giving it a second thought, can you please share a use case where you want the mail to be sent but also save it on disk?

from laravel-mail-preview.

JayBizzle avatar JayBizzle commented on July 20, 2024

Hmmm, thinking about it, I could just render and return the email view and store it to the file system as well as sending pretty easily without any kind of package.

So, perhaps I was just being a little lazy hoping this package could do it for me 🤓

from laravel-mail-preview.

themsaid avatar themsaid commented on July 20, 2024

Aren't we all looking for a super hero package that does everything for us? 😀

from laravel-mail-preview.

sebastiaanluca avatar sebastiaanluca commented on July 20, 2024

@themsaid For an upcoming project, a client wants to send e-mails but also save a preview of that sent e-mail to review later (or by other admins) :)

from laravel-mail-preview.

themsaid avatar themsaid commented on July 20, 2024

well, I'd absolutely accept a PR for that :)

The thing is this package replaces the mail driver configs completely, I think the best option here is to listen to a mail sent event, let the package save the email to disk, but send the actual email from the event listener.

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.