adonisjs / mail

AdonisJS Email Provider
MIT License
106 stars 34 forks source link

Edge dot folder notation is breaking plain/text support(?) #32

Closed HapLifeMan closed 4 years ago

HapLifeMan commented 5 years ago

Hi @thetutlage,

I found a problem while using Edge and plain/text mail.

I have this structure:

| - views
| --- emails
| ----- edge
| ------- welcome.edge
| ----- plain
| ------- welcome.text

This structure is not possible because when sending the mail I use it like this (as described in the documentation, with the .text prefix):

await Mails.send(['emails.edge.welcome', 'emails.plain.welcome.text'])

The dot-notation folder use the .text as a new nested level. I did it works with welcome-text.edge but this is not really beautiful...

I don't know if it is a bug or an expected behaviour... What is you opinion on this?

Thanks! 🙂

thetutlage commented 5 years ago

Yup, a clear bug with the mailer. I will address the issue in the newer release

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.