What is the best way to send HTML emails using the Amazon SES services using the new email API of Kirby3?.
Previously I used a custom SES Service that works with email()
function of Kirby2 and it works very well.
Please, let me know.
What is the best way to send HTML emails using the Amazon SES services using the new email API of Kirby3?.
Previously I used a custom SES Service that works with email()
function of Kirby2 and it works very well.
Please, let me know.
Should work if you configure your credentials using the transport
parameter: https://getkirby.com/docs/guide/emails#transport-configuration
Thanks! It worked for me.
Now,
I have a markdown field on the panel, there I write my custom email templates with HTML support. But when I send the emails, the tags are not rendering as HTML, but plain text instead with visible tags. Any help?
I found the answer:
kirby()->email([
'to' => 'email@domain.com',
'from' => 'from@domain.com',
'subject' => 'This is a HTML email',
'body' => [
'html' => 'This is a test with <strong>bold</strong>'
],
]);
Thanks!
Keep in mind that if you use input from unknown/unvalidated sources (like user input), you have to escape everything. Otherwise you are at risk that your emails are a security risk or that someone abuses your service for sending spam.
Sure!! thanks for the advice.