Sending an email with html-body content


#1

I’ m trying to sent a mail with a html-body like this. But the html is not recognised in the emailclient. Should i append ‘isHtml => true’ or something like that somewhere? Like you should do in phpMailer?

$htmlTxt="<h1>test</h1>"; 
kirby()->email([
  'from'    => 'info@mysite.be',
  'to'      => $contactEmail,
  'subject' => $subject,
  'body'    => $htmlTxt
 ]);

#2

Could you please state what Kirbz version zou are using? (Or select the appropriate category for your post)


#3

#4

ok, it works now! thanks!