Persönliche Anrede in E-Mail - Platzhalter?
-
- Behoben
- 3.0.x/5.0.x
-
398546 -
22. Februar 2017 um 22:03
-
-
- Offizieller Beitrag
Hallo,
Bitte verlasst euch aber noch nicht für zukünftige Versionen darauf, wenn hier tatsächlich eine Inkonsistenz zwischen 2.1 und 3.0 vorliegt, dann werde ich diese noch ausbessern!
beantwortet das deine Frage?
-
Also in 3.1 geht es
-
Also in 3.1 geht es
Ich nutze WoltLab Suite™ 3.1.9 pl 2 und bei mir funktioniert es an dieser Stelle eben nicht mit {username}... Vielleicht geht das bei "E-Mail an alle Benutzer" aber nicht bei "E-Mail an Benutzergruppe"
-
Das geht bei beiden genannten Fällen habe es bei mir gerade so gar fest ins Template gebaut damit ich es nicht mehr manuell machen muss. Da lautet der Code dann leicht anders aber es geht. DEFINITIV (!)
-
Dann wäre es doch nett von Dir, wenn Du den funktionierenden Code hier zeigen würdest, oder?
Gruß norse
-
Da ich es ins Template geschrieben habe und nicht manuell mache, weiß ich nicht ob der TE das so möchte.
Code
Alles anzeigen<html> <head> <style type="text/css"> * { font-family: {@$style->getVariable('wcfFontFamilyFallback', true)}; font-size: {$style->getVariable('wcfFontSizeDefault')}; } html, body, h1, h2, h3 { padding: 0; margin: 0; } body { background-color: {$style->getVariable('wcfContentBackground', true)}; color: {$style->getVariable('wcfContentText', true)}; background-image: url('https://lrde.de/media/logo/hintergrund.png'); background-repeat: no-repeat; background-attachment: fixed; background-position: center; background-size: cover; } a { color: {$style->getVariable('wcfContentLink', true)}; text-decoration: none; } p, .paragraphMargin { margin-top: 1em; margin-bottom: 1em; } td { vertical-align: top; } {* see email_paddingHelper.tpl *} table.paddingHelper.block { width: 100%; } .content { padding: 40px 40px 60px; background-color: rgba(192, 192, 192, 0.5); margin: 5px; padding: 5px; border-radius: 25px; padding: 5px; } .header, .footer { padding: 20px 40px; } .header { background-color: {$style->getVariable('wcfHeaderBackground', true)}; color: {$style->getVariable('wcfHeaderText', true)}; } .navigation { background-color: {$style->getVariable('wcfNavigationBackground', true)}; color: {$style->getVariable('wcfNavigationText', true)}; width: auto; height: auto; border-radius: 25px; padding: 10px; text-align: center; } .footer { background-color: {$style->getVariable('wcfFooterBackground', true)}; color: {$style->getVariable('wcfFooterText', true)}; } .footer a { color: {$style->getVariable('wcfFooterLink', true)}; } h1 { font-weight: 300; line-height: 1.05; font-size: {$style->getVariable('wcfFontSizeTitle')}; } h2 { font-weight: 400; line-height: 1.28; color: {$style->getVariable('wcfContentHeadlineText')}; font-size: {$style->getVariable('wcfFontSizeSection')}; } small { font-size: {$style->getVariable('wcfFontSizeSmall')}; font-weight: 300; } .largeMarginTop { margin-top: 40px; } {* Buttons *} td.button { background-color: {$style->getVariable('wcfButtonPrimaryBackground', true)}; border-radius: 2px; padding: 6px 12px; } td.button a { color: {$style->getVariable('wcfButtonPrimaryText', true)}; } .box128 { border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; padding: 20px; } .box128 td.boxContent { padding-left: 20px; } .box64 { border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; padding: 15px; } .box64 td.boxContent { padding-left: 15px; } .box48 { border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; padding: 12px; } .box48 td.boxContent { padding-left: 12px; } .box32 { border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; padding: 10px; } .box32 td.boxContent { padding-left: 10px; } .containerHeadline h3 { margin: 0; padding: 0; font-weight: 400; line-height: 1.28; font-size: {$style->getVariable('wcfFontSizeHeadline')}; } .containerHeadline h3 a { font-size: {$style->getVariable('wcfFontSizeHeadline')}; } </style> </head> <body> {capture assign='header'} <p><span align="center"><img src="https://lrde.de/media/logo/banner_r_mail.png"></span></p> <div class="navigation"> <p>Neue LRDE Mail <strong>{$mailbox->getName()}</strong></p> </div> {/capture} {include file='email_paddingHelper' block=true class='header' content=$header sandbox=true} {if $beforeContent|isset}{@$beforeContent}{/if} {include file='email_paddingHelper' block=true class='content' content=$content sandbox=true} {if $afterContent|isset}{@$afterContent}{/if} {capture assign='footer'} {hascontent} <span style="font-size: 0;">-- </span> {content} <p>Dein <a href="https://lrde.de/" target="_blank">Lebensretter-Deutschland</a> Team</p> <p>Vielen dank, für das lesen</p> <p>Diese Mail ist <strong>nur</strong> Original, wenn unser Logo drinnen ist. Außerdem nur, wenn du mit deinem Benutzername angesprochen wirst</p> {@MAIL_SIGNATURE|language|nl2br} {/content} {/hascontent} {/capture} {include file='email_paddingHelper' block=true class='footer' content=$footer sandbox=true} <table>{* Do not remove: This table is needed by certain less able email clients to properly support background colors. Don't ask. *}</table> </body> </html>
So sieht es nun fertig aus, wer vllt bei sich so was auch machen möchte
-
Das geht bei beiden genannten Fällen habe es bei mir gerade so gar fest ins Template gebaut damit ich es nicht mehr manuell machen muss. Da lautet der Code dann leicht anders aber es geht. DEFINITIV (!)
Dann stellt sich mir die Frage, wie der o.g. Screenshot meinerseits zustande kam
-
Dann stellt sich mir die Frage, wie der o.g. Screenshot meinerseits zustande kam
Weil bei dir was fehlt : {$username}
-
Aber es hieß ja eben, dass es mit "{username}" gehen soll und nicht mit $ dabei
-
Naja, das eine steht im Mailtext und das andere im Template, das könnte das bereits erklären.
-
Aber es hieß ja eben, dass es mit "{username}" gehen soll und nicht mit $ dabei
Es geht mit $ ohne wirst du kein Ergebnis bekommen.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!