HTML Email Signatures
-
Thank you Arron. I will consider the beta program down the line when we are up and running live.
-
We are working on improving our documentation for HTML signatures. I think it may help you as well.
I've said in the past that CSS is not supported, this is not correct. CSS is supported, however, our sanitization process removes the style tag, which is where the CSS is commonly found. My apologies for the incorrect information.
We use a sanitization process to try to prevent problems. The following tags are the only tags allowed in a client signature:"address", "article", "aside", "footer", "header", "h1", "h2", "h3", "h4",
"h5", "h6", "hgroup", "main", "nav", "section", "blockquote", "dd", "div",
"dl", "dt", "figcaption", "figure", "hr", "li", "main", "ol", "p", "pre",
"ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn",
"em", "i", "kbd", "mark", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp",
"small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "caption",
"col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "img","span", "u", "map", "area"Any tag that is not in the list above will be stripped when saved using Remote Administration. This includes html, head, body, and style tags.Styling should be done inline using a style attribute.Below is an example of the signature we use for mdaemon.com that uses inline styling.-- <br> <strong>$CONTACTFULLNAME$</strong> <br>$CONTACTBUSINESSTITLE$ <br><strong>o</strong>: 817-601-3222 <strong>e</strong>: $CONTACTEMAILADDRESS$<br><br> <span style=" font-size: 16pt;"><strong>M</strong>Daemon Technologies</span><br> <span style="font-weight: bold; font-size: 10pt;">Simple Secure Email</span> <br><br> Visit us on <a style="color: #006699;" href="https://www.mdaemon.com">www.mdaemon.com</a> | <a style="color: #006699;" href="https://www.facebook.com/MDaemon.Technologies/">Facebook</a> | <a style="color: #006699;" href="https://www.linkedin.com/company/mdaemon-technologies">LinkedIn</a> | <a style="color: #006699;" href="https://www.youtube.com/c/MDaemonTechnologies">YouTube</a> | <a style="color: #006699;" href="https://www.reddit.com/r/MDaemonTechnologies/">Reddit</a> <br>Sent using the <a style="color: #006699;" href="https://www.mdaemon.com/">MDaemon Email Server</a></div>If you want to bypass the sanitization process you can save the file directly on the MDaemon server. Domain client signatures are saved under \MDaemon\Domains\$DOMAINNAME$\, default client signatures are stored at \MDaemon\Domains\, and group client signatures are stored at \MDaemon\Data\Groups\$GROUPNAME$\, in the ClientSignatures.html and ClientSignatures.txt files. Administrators should proceed with caution when bypassing the sanitization process as its possible to introduce issues. For example, you can manipulate the style of an entire email, a style tag in the body violates the HTML standard and could lead to unpredictable behavior in email clients, and tags could be used to introduce malicious content.
-
Hi @Arron
I'm still working on this and trying to rationalise. I have a couple questions which are related to this subject.
1. Is it possible to specify a plain text alternative siganture that's used when an senders client is set to send in plain text only?
2. I'm having difficulty editing the shared contacts in MDaemon and using the signature macros. I want to add things like Job Title etc. Where should I be editing the global shared contacts as I can't seem to find anywhere in the Remote Admin to do this?
Thanks again as always!
-
1. Is it possible to specify a plain text alternative siganture that's used when an senders client is set to send in plain text only?
Yes. MDaemon automatically creates it based on the HTML signature that you insert. If you don't like the version that MDdaemon creates you can edit it in the MDaemon\Domains\$DOMAINNAME$\ClientSignature.txt file.
2. I'm having difficulty editing the shared contacts in MDaemon and using the signature macros. I want to add things like Job Title etc. Where should I be editing the global shared contacts as I can't seem to find anywhere in the Remote Admin to do this?
You can edit the domains public contact list from any email client that is setup to synchronize the contact list. The user you are authenticating as must have permissions to edit the list. The easiest way to do this is to give yourself administrator access to the domain contact list and then login to webmail as you. Go to options / folders and make sure you are subscribed to the Public Folders \ domain.com \ Contacts folder. Then go to the contacts section and select public folders \ Contacts. You should see a contact for every user account in MDaemon. Edit each contact and set the desired values.
-
@Arron Perfect, thank you for this. I was editing contacts this way via Thunderbird and I couldn't seem to get the relevant details to show in signatures via the macros. I connected to the contacts folder using CardDAV_URL and edited Organisational Properties for a user. I updated Title, Organisation and in the signature I used $CONTACTBUSINESSTITLE$ and $CONTACTBUSINESSCOMPANY$ but nothing shows in the email signatures.
At least I know I'm in the right place, I'll continue to dig around!
-
I would suggest either logging into webmail or looking at the actual addrbook.mrk file on disk to make sure the changes you are making in Thunderbird are getting sync'd to the server and mapped to the correct fields. If you open the addrbook.mrk file on the server the Title should be stored in the <busTitle> element. It should look something like this:
<busTitle><![CDATA[CEO]]></busTitle>
-
@Arron It apears it's not respecting changes made in Thunderbird. I guess using the Webclient as an administor should be the way to change setttings such as this and not rely on a third party client? Understandable if so and thank you!
-
You "should" be able to make the changes via Thunderbird. I'll run some tests and see if I can figure out what is going on. In the meantime the work around will be to use webmail.
-
@Arron I think some fields just don't match. For instance, I tried the website in Thunderbird which is under Web Sites > Work when editing a contact and this is reflected in the webmail client. However, when I tried to update Job Title in Thunderbird which is under Organisational Properties > Title it does not update on the webmail client. If I update Job Title in the webmail client it updates the Job Title in Thunderbird which is odd. Seems to work one way and not the other.
As I said I think it's probably best to do edits in the webmail client?
-
What version of Thunderbird are you using?
What version of MDaemon are you using?
So far I have not been able to reproduce the issue. When I add a Title in thunderbird it is updated in the contact and appears in webmail.
-
@Arron I was using Thunderbird 145.0 and updated to 146.0 and it appears to be working now! Sorry for messing you arround. I'm on MDaemon 25.5.2.
-
No worries, I'm glad its working for you now!
-
Another thing I'm noticing and forgive me for hogging your time is that the html formatting of received emails differes when sent from the webmail and Thunderbird. For example a <h2></h2> displays a different size.
From sent from Thunderbird -

and from the webmail client -

-
Thunderbird is probably modifying the HTML or altering the size of <h2> elements. We are not modifying <h2> elements in webmail.
The client that is being used to view the email can also alter how the content is displayed.
-
@Arron Thank you, I kind of figured this!
I really appreciate your help with this! I will plod away and find the most consistant way to produce what suits us the best!
- 1
- 2 / 2