Templates support
Closed this issue · 1 comments
kolisko commented
I would like to ask you if the library supports mailgun templates?
sargue commented
Yes, quite easy.
Let's suppose you have a template named account_activation
with a parameter: name
.
This call should do the trick:
Mail.using(configuration)
.to("marty@mcfly.com")
.subject("Activate your account")
.template("account_activation")
.parameter("v:name", "Doc Brown")
.build()
.send();