Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to send emails AND save a HTML version? #7

Closed
JayBizzle opened this issue Apr 14, 2016 · 7 comments
Closed

Is it possible to send emails AND save a HTML version? #7

JayBizzle opened this issue Apr 14, 2016 · 7 comments

Comments

@JayBizzle
Copy link
Contributor

We would like to actually send emails AND save a HTML version for our records.

Is this possible with this library?

Thanks

@themsaid
Copy link
Collaborator

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.

@JayBizzle
Copy link
Contributor Author

👍

@themsaid
Copy link
Collaborator

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?

@JayBizzle
Copy link
Contributor Author

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 🤓

@themsaid
Copy link
Collaborator

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

@sebastiaanluca
Copy link

@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) :)

@themsaid
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants