Exchange Online Signature for new and replay message - exchange-server

I try to create a signature in Exchange On-line. This signature have two triggers:
Add signature to new e-mail:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
h1 {font-size: 14pt; font-family: "Segoe UI", Arial,sans-serif; color:#F79646;margin-bottom:0;font-weight:normal;}
h2 {font-size: 11pt; font-family: "Segoe UI", Arial,sans-serif;margin-bottom:1em;margin-top:0;font-weight:normal;}
.email {font-size: 10pt; font-family: "Segoe UI", Arial, sans-serif; color:blue;text-decoration:underline;}
p {font-size: 10pt; font-family: "Segoe UI", Arial, sans-serif;}
.nazwafirmy {font-size:12pt; font-family: 'Segoe UI', Arial, sans-serif; color:#F79646;}
a {text-decoration:underline; color:blue;}
.danefirmy {color:#A6A6A6;}
.danefirmy b {color:gray; font-weight:normal;}
.infoprawne {font-size:8pt; color:#A6A6A6;}
</style>
</head>
<body>
<p>Pozdrawiam,</p>
<h1>%%displayname%%</h1>
<h2>%%title%%</h2>
<p class="email">%%email%%</p>
<p>%%mobilenumber%%</p>
<br />
<p class="nazwafirmy">Company</p>
<p>ul.<br />tel. / fax:<br /></p>
<p>www.link.pl</p>
<br />
<p class="danefirmy"><b>NIP: </b><br />
<b>Some information</b><br /><br />
</p>
<p class="infoprawne">Some information<br />
<br />
</p>
</body>
</html>
And the second trigger - added after replay message:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<style type="text/css">
p {font-size: 10pt; font-family: "Segoe UI", Arial, sans-serif;}
</style>
</head>
<body>
<p>Pozdrawiam,</p>
<p>%%displayname%%</p>
<p>Supremo Sp. z o.o.</p>
</body>
</html>
I try to add this signature using rules in Exchange (like that):
http://help.outlook.com/en-us/140/Ff852816.aspx#FallbackAction
or
http://www.axon-it.com/2012/02/22/office-365-email-footers/
and
http://www.axon-it.com/2012/01/23/office-365-email-disclaimer/
and even
http://community.office365.com/en-us/forums/158/p/48901/171956.aspx#171956
but without any results.
I want to do something like that:
Create new e-mail
Send new e-mail - the FIRST trigger (add signature) has been activated
I receive answer for my first e-mail
When I sent a replay e-mail the SECOND trigger has activated (add only replay signature)
How I can do that?

I have create two other rules:
1. activate when send new email - except when subject start: RE, FWD, ODP.
2. activate when subject email was RE, FED, ODP.
At now, everything is working :)

Related

Issues with text moving below image

So I am trying to make different texts next to specific symbols (in the elevator-pitch div) but somehow the element skip rows and text end up below the images. Ideally I want each text to be nicely aligned next to the images (hence making the float).
Here is the code: https://codepen.io/andreassoteriou/pen/PoaLBjv
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>AndreasSoteriouCV</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Dancing+Script&family=Merriweather&family=Montserrat&family=Pacifico&family=Playball&family=Playfair+Display&display=swap" rel="stylesheet">
</head>
<body>
<div class="top-container">
<img src="andreassoteriou-modified.png" alt="andreas">
<h1>Andreas Soteriou</h1>
<h2>aspiring web developer</h2>
</div>
<h1>My Story</h1>
<div class="elevator-pitch">
<img class="creativity-img" src="https://cdn-icons-png.flaticon.com/512/1126/1126453.png" alt="creativity">
<h2>Creativity</h2>
<p>Why I am creativfdfdfdfdfdfdfdwerv4vrtyvrtyvrtyvyrytve</p>
</div>
<hr>
<div class="elevator-pitch">
<img class="logical-img" src="https://cdn-icons-png.flaticon.com/128/1935/1935467.png" alt="logical">
<h2>Logical</h2>
<p>Why I am creativggggfgotjgirtgfdffdffdfdfdfdfdfd</p>
</div>
<div class="story-container">
</div>
</body>
</html>
body {
margin: 0;
font-family: 'Merriweather', serif;
text-align: center;
}
.top-container {
background-color: #F8EDE3;
margin: 0;
height: 450px;
padding-top: 60px;
}
.top-container > h1 {
margin-top:40px;
font-size: 40px;
}
.top-container > h2 {
font-family: 'Dancing script', serif;
font-size: 30px;
}
.middle-container {
}
.elevator-pitch {
width: 25%;
text-align: left;
line-height: 1.5;
margin: 50px auto 50px auto;
overflow:auto;
}
.creativity-img {
float: left;
margin-right: 20px;
width: 30%;
}
.logical-img {
float: right;
width: 30%;
margin-left: 20px;
any idea on how I should tackle this? Most importantly, very curious as to why this happens!
Best regards,
Andreas
I was expecting the text to be nicely aligned next to the image as in the udemy course I am doing now:

How to use google font in thymeleaf pdf template

I am using this to integrate google font Roboto in my thymeleaf pdf template.
But no effect is coming in pdf
<link th:href="#{http://fonts.googleapis.com/css?family=Roboto}" rel='stylesheet' type='text/css' />
<body style="width: 900px; margin: 0 auto; color: #111; line-height: normal; font-family: Roboto; font-size: 12px; box-sizing: border-box;font-style: italic;">

Spring Boot thymeleaf can not find css file

I have a spring boot program that uses thymeleaf. The web page loads. But the web page cannot find my css files. I see the follow logged by spring boot. The web page is loaded with this url: http://localhost:9090/lotto/rawdataocc.
No mapping for GET /lotto/lotto.css
The CSS file is under resources/static directory
The thymleleaf template is under templates directory.
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Historical Lotto Number Occurances</title>
<link th:href="#{lotto.css}" rel="stylesheet" />
<!--
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}
#customers tr:nth-child(even){background-color: #f2f2f2;}
#customers tr:hover {background-color: #ddd;}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
-->
</head>
<body>
<table id="customers" >
<tr>
<th>Lotto Number</th>
<th>Occurrence</th>
</tr>
<tr th:each="list: ${list}">
<td th:text="${list.lottoNumber}" />
<td th:text="${list.occurance}" />
</tr>
</table>
</body>
</html>
What you're missing is a single slash /.
Instead of:
<link th:href="#{lotto.css}" rel="stylesheet" />
... do:
<link th:href="#{/lotto.css}" rel="stylesheet" />
This will make your url context-relative instead of page-relative (link)

Converting svg to png using imagemagick 6.5.4, text not displayed on the resulting png

I am new to the whole SVG and imagemagick, so still learning things as I go. I have this image in a svg format, which I would like to convert to png. This is how the SVG looks like when opened using Chrome:
The original SVG file also has some white spaces, which I would like to trim out. After doing some searching, I found out the "trim" option that can be used in "convert".
I tried the following:
convert -trim example_image.svg example_image.png
Which seems to trim out any unnecessary white spaces and most of the SVG file is converted. However, the text portion of this image is no longer visible in the png file:
I went through some forums and most of them seems to suggest to start by checking the DELEGATES section that I can read using "convert -list configure", and look out for tags such as "freetype" and "gs". So it seems like those two tags are available. Is there anything else I could do to diagnose the issue? I don't necessarily generate these SVG files (it is generated by one of the colleagues at work), so not sure where to look exactly. However, I am attaching a snippet of the SVG "code" that prints the text portion. I hope this might help somebody diagnose the issue:
<g transform="translate(0, 480)">
<g transform="translate(50.000000, 0)">
<switch x="0" y="0">
<foreignObject height="300" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" width="1150">
<p style="font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">Figure 1. Putative Fusion-translocation event. The 5&apos; (in the fusion) transcript EWSR1-001(ENST00000397938) from the gene EWSR1(ENSG00000182944) on the forward strand is drawn top left with its corresponding breakpoint at 22:29684366. The 3&apos; (in the fusion) transcript FLI1-004(ENST00000525560) from the gene FLI1(ENSG00000151702) on the forward strand is drawn top right with its corresponding breakpoint at 11:128664210. Exons are drawn to scale relative to other exons in the same drawing. Introns are scaled to make up approximately 1/4th of the final drawing. This is predicted to be an IN-frame fusion. Domains include: </p>
<div style="display: table; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">
<div style="display: table-row; font-family: Arial; font-size: 20px; font-weight: bold" xmlns="http://www.w3.org/1999/xhtml">
<div style="display: table-cell" xmlns="http://www.w3.org/1999/xhtml">Domain Name</div>
<div style="display: table-cell; padding-left: 20px" xmlns="http://www.w3.org/1999/xhtml">External identifier(s)</div>
</div>
<div style="display: table-row; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">
<div style="display: table-cell; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">Ets</div>
<div style="display: table-cell; font-family: Arial; font-size: 20px; padding-left: 20px" xmlns="http://www.w3.org/1999/xhtml">PF00178</div>
</div>
<div style="display: table-row; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">
<div style="display: table-cell; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">RRM_dom</div>
<div style="display: table-cell; font-family: Arial; font-size: 20px; padding-left: 20px" xmlns="http://www.w3.org/1999/xhtml">PF00076</div>
</div>
<div style="display: table-row; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">
<div style="display: table-cell; font-family: Arial; font-size: 20px" xmlns="http://www.w3.org/1999/xhtml">Znf_RanBP2</div>
<div style="display: table-cell; font-family: Arial; font-size: 20px; padding-left: 20px" xmlns="http://www.w3.org/1999/xhtml">PF00641</div>
</div>
</div>
</foreignObject>
</switch>
</g>
Your help would be greatly appreciated.

Marketo ESP overwriting or "autocorrecting" <![if !mso]> to <!-- [if !mso] -->

I don't know if anyone on here uses Marketo as an ESP, and I'm not even sure if this is the right place to ask this type of question.
I'm trying to target Outlook in my HTML emails. No matter how I enter the code into marketo (template, Replace HTML, WYSIWYG HTML editor) the code is always auto corrected.
It changes <![if !mso]> to <!-- [if !mso] -->
I think you can see the problem here. Marketo sees the <! and thinks I'm trying to make a comment so it autocorrects, but the auto correct essentially renders my code invisible.
Anyone know a work around for this?
Here's the revised code (edited from emailbtn.net) that solved my ESP problem:
<div><!--[if mso]> <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://buttonlinkhere/" style="height:44px;v-text-anchor:middle;width:200px;" arcsize="50%" stroke="f" fill="t"> <v:fill type="tile" src="http://parata.com/email-images/rx/btn-big-44.png" color="#f06609" /> <w:anchorlock /> <center style="color:#ffffff;font-family:sans-serif;font-size:16px;font-weight:normal;" _mce_style="color: #ffffff; font-family: sans-serif; font-size: 16px; font-weight: normal;">Microsoft Outlook</center> </v:roundrect> <![endif]--><!--[if !mso]><!--><a style="background-color: #f06609; background-image: url(http://parata.com/email-images/rx/btn-big-44.png); border-radius: 22px; color: #ffffff; display: inline-block; font-family: sans-serif; font-size: 16px; font-weight: normal; line-height: 44px; text-align: center; text-decoration: none; width: 200px;" href="http://buttonlinkhere/">Not Microsoft Outlook</a><!--<![endif]--></div>

Resources