Email template CSS code broken when sending through LS to Outlook 365 Desktop

Plus d'informations
il y a 2 mois 3 semaines - il y a 2 mois 3 semaines #192643 par Indispirit
Hi all

I'm having a problem where LS CSS code template emails such as invite and reminder is not rendering correctly when being received by MS Outlook 365 desktop client.





The CSS code is standard for emailing to 365 and is sourced from emailonacid. The code breaks after the #outlook tag
<style type="text/css">/* Client-specific Styles */
         #outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
         body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
         /* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */
         .ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
         .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing.   */
         .backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
         img {outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic;}
         a img {border:none;}
		 a {color: #E63E31; text-decoration: none;}
         .image_fix {display:block;}
         p {margin: 20px 0px !important;}


I've done the following tests to confirm it's a LimeSurvey problem and just for Outlook Desktop
* Sent the same email through the same version of PHP mailer - (arrives without code break)
* Sent the same email to the follow clients: Thunderbird, Gmail, Yahoo, Mac OS, Outlook Web (arrives without codebreak)
* Issue is reported by multiple Outlook 365 receivers


Does anyone have any idea what could be causing this? I've read the code which resides in commonhelper.php, SendEmailMessage but can't see anything obvious.

Although this is just an issue for Outlook 365 desktop, a hell of a lot of folk use it, especially folk we're surveying in big organisations.
Pièces jointes :
Dernière édition: il y a 2 mois 3 semaines par DenisChenu. Raison: remove link adn add code

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 mois 3 semaines #192644 par DenisChenu
Add space to deactivate Expression Manager

{padding:0;} => { padding:0; }

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Les utilisateur(s) suivant ont remercié: Indispirit

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #192645 par Indispirit

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #192657 par Indispirit

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!