Comments (7)
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.
👍
from laravel-mail-preview.
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.
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.
Aren't we all looking for a super hero package that does everything for us? 😀
from laravel-mail-preview.
@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.
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)
- No From, To, Cc and other addresses in HTML file HOT 2
- Route caching HOT 2
- Add mail.preview config to allow simpler conditional enabling, open door to other enhancments. HOT 4
- Session destroyed
- Add Laravel 5.5 compatiblity HOT 2
- Testing helper HOT 1
- Not working with fresh laravel 5.5 #ReflectionException (-1) Class swift.transport does not exist
- Attachments missing in .eml file HOT 2
- Issue with EncryptCookies middleware, session not forgotten HOT 4
- Driver [preview] not supported
- Missing preview files if sent many mails in console command HOT 2
- Error when To header is empty HOT 1
- support laravel 8
- Unsupported mail transport [preview] HOT 2
- php 8 support?
- Ray in controller HOT 5
- Attribute [mailPreview] does not exist.
- Attribute [mailPreview] does not exist
- Race condition with css inliner HOT 6
- ValueError: Path cannot be empty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mail-preview.