HTML signature within 365 exchange online, HTML Signature |
HTML signature within 365 exchange online, HTML Signature |
dan @ electrowise |
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) 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> . |
Christian J |
Nov 1 2017, 04:26 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I suspect none of the regulars use MS Office that much, but I assume %%mobilephone%% is a variable for that particular user? Would it then be possible to include all the related HTML in the variable's value, not just the mobile number?
|
CharlesEF |
Nov 1 2017, 04:41 PM
Post
#3
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
You will need server-side processing (PHP, ASP, etc...) for that. You will also have to change the logic a little. 'Mob:' and 'DD:' are currently hard coded in the HTML.
What server-side languages are available to you? |
Lo-Fi Version | Time is now: 26th April 2024 - 09:20 AM |