1 year ago

Mailable, rendering and AJAX

Posted 1 year ago by godbout

Before sending an email, I open a modal where I can update the subject, text, etc... of the email. I'd like to load the preview of the email through AJAX, still while using the Mailable class. Mainly, like the preview in the browser, but in AJAX (without the head tags and all). I played with the markdown/html templates, remove the layouts etc, but that seems an overcomplicated path. The idea is to have only one place where the design of the email is done, but it's possible to view it in the browser, and to get it through AJAX. Laravel doesn't seem to allow that out of the box, right? Does my idea even make sense, I'm wondering?


Please sign in or create an account to participate in this conversation.