<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Send HTML body with Mail Service SL</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f0be5feef/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f0be5feef/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/7f0be5feef/</id><updated>2026-04-14T08:12:14.418000Z</updated><subtitle>Recent posts to Send HTML body with Mail Service SL</subtitle><entry><title>Send HTML body with Mail Service SL</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/7f0be5feef/?limit=25#c488" rel="alternate"/><published>2026-04-14T08:12:14.418000Z</published><updated>2026-04-14T08:12:14.418000Z</updated><author><name>msegon</name><uri>https://forge.codesys.com/u/msegon/</uri></author><id>https://forge.codesys.com507518bdffa8e3d3e3a19cd5a2d34d2a9dde62f3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to send a mail using Mail service SL.&lt;/p&gt;
&lt;p&gt;I would like the body to be in HTML format for a nicer look. Which I managed to do, but only if I don't send an attachment.&lt;br/&gt;
Can someone help me with the settings on how to send an HTML body and attachment?&lt;/p&gt;
&lt;p&gt;I used the Mail Service SL Example project, the only thing I added in the "Main_PRG" code in line 51 under "SendMailFB" is "mimeType := 1".&lt;/p&gt;
&lt;p&gt;I'm using Library:&lt;br/&gt;
Mail Service SL Library Documentation&lt;br/&gt;
Company:    CODESYS&lt;br/&gt;
Title:  Mail Service SL&lt;br/&gt;
Version:    1.13.0.0&lt;br/&gt;
Categories: Application|Utils&lt;br/&gt;
Namespace:  MAIL&lt;br/&gt;
Author: CODESYS Development GmbH&lt;br/&gt;
Placeholder:    Mail_Service_SL&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>