The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> HTML signature within 365 exchange online, HTML Signature
dan @ electrowise
post Nov 1 2017, 04:25 AM
Post #1





Group: Members
Posts: 1
Joined: 1-November 17
Member No.: 26,522



Good morning all,

i have a little bit of a challenge (probably easy for you lot) smile.gif

i have been asked to re-create a global signature for a client that uses Office 365 exchange online

I have the signature running fine at the moment, but they want to include direct dial and mobile numbers in - the trouble is not all of the users have both numbers

currently i have it set as below;

<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:01626 01626"> <span style="color: #9ACD32;"><b>Head Office:</b></span> 01626 01626</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:%%mobilephone%%"> <span style="color: #9ACD32;"><b>Mob:</b></span> %%mobilephone%%</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:%%office%%"> <span style="color: #9ACD32;"><b>DD:</b></span> %%office%%</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="mailto:%%email%%"> <span style="color: #9ACD32;"><b>Email:</b></span> %%email%%</a>

which gives the following;

Head Office: 01626 01626 Mob: 0123456789 DD: 01626 01627 Email: Adam.Crockett@yourdomain.co.uk


however if the user has no mobile or DD, it shows like this;

Head Office: 01626 01626 Mob: DD: Email: Adam.Crockett@yourdomain.co.uk

they have asked if there is anyway to hide the Mob: & DD: if the number does not exist so that it will just show as follows

Head Office: 01626 01626 Email: Adam.Crockett@yourdomain.co.uk

is this easily achievable?

Any help would be greatly appreciated

Below is the full code for the signature ;

<html>
<body>
<table cellspacing="0" style="max-width:600px; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" cellpadding="0" border="0" width="600">
<tbody>
<tr>
</a></td>
<td width="195" border="0" style="vertical-align: middle">
<b><span style="font-family:segoe ui;font-size:16px;color:#000000;">%%displayname%%</span></b>
</b><br>
<b><span style="font-family:segoe ui;font-size:16px;color:#9ACD32;">%%title%%</span></b>
</b><br><br>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:01626 01626"> <span style="color: #9ACD32;"><b>Head Office:</b></span> 01626 01626</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:%%mobilephone%%"> <span style="color: #9ACD32;"><b>Mob:</b></span> %%mobilephone%%</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="tel:%%office%%"> <span style="color: #9ACD32;"><b>DD:</b></span> %%office%%</a>
<span style="font-family:segoe ui;font-size:12px; color:#000001;"><a style="line-height:12px;padding:0px;margin:0px;color:#000001;text-decoration:none;" href="mailto:%%email%%"> <span style="color: #9ACD32;"><b>Email:</b></span> %%email%%</a>
</b><br>
<a>Baker Estates Ltd, Green Tree House, Silverhills Road, Decoy Industrial Estate, Newton Abbot, TQ12 5LZ </a>
</b>

.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 04:15 AM