PHP Mail Umlaute

AnfängerPHP

Grünschnabel
Hallo Zusammen,

ich bin wirklich am verzweifeln und wende mich an Euch:)

Ich habe ein Anmeldesystem gekauft, wo ich das Template für die Besätigung anpassen möchte. Das Problem habe ich, dass die Bestätigungs-Mail die Umlaute einfach nicht anzeigt. In jeder HTML-Live Version funktioniert der Spass problemlos. Vielleicht kann mir jemand von Euch weiterhelfen.

<?php
/**
* Confirmation email sent to the attendee
* @version 2.6.1
*
* To Customize this template: copy and paste this file to .../wp-content/themes/--your-theme-name--/eventon/templates/email/rsvp/ folder and edit that file.
*/

$args = $args;

$rsvp_id = $args['rsvp_id'];
$RSVP = new EVO_RSVP_CPT($rsvp_id);

$EVENT = new EVO_Event( $RSVP->get_prop('e_id'), '',$RSVP->repeat_interval());
$EVENT->get_event_post();

$evo_options = get_option('evcal_options_evcal_1');
$evo_options_2 = EVORS()->opt2;
$optRS = EVORS()->evors_opt;

$lang = (!empty($args['lang']))? $args['lang']: evo_get_current_lang(); // language version
EVO()->lang = $lang; // set evneton global language


// location data
$location = false;

$location_data = $EVENT->get_location_data();
if($location_data){
$location = (!empty($location_data['name'])? $location_data['name'].' - ': null).(!empty($location_data['location_address'])? $location_data['location_address']:null);
}

//event time
$readable_time = $EVENT->get_formatted_smart_time($RSVP->repeat_interval());

// styles
$__styles_date = "font-size:48px; color:#ABABAB; font-weight:bold; margin-top:5px";
$__styles_em = "font-size:14px; font-weight:bold; text-transform:uppercase; display:block;font-style:normal";
$__styles_button = "font-size:14px; background-color:#".( !empty($evo_options['evcal_gen_btn_bgc'])? $evo_options['evcal_gen_btn_bgc']: "237ebd")."; color:#".( !empty($evo_options['evcal_gen_btn_fc'])? $evo_options['evcal_gen_btn_fc']: "ffffff")."; padding: 6px 10px; text-decoration:none; border-radius:4px;";
$__styles_01 = "font-size:30px; color:#303030; font-weight:bold; text-transform:uppercase; margin-bottom:0px; margin-top:0;";
$__styles_02 = "font-size:18px; color:#303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%;";
$__styles_02b = "text-transform:none; font-size:14px; line-height:130%;padding:10px 0; display:inline-block";
$__sty_lh = "line-height:110%;";
$__styles_02a = "color:#afafaf; text-transform:none";
$__styles_03 = "color:#afafaf; font-style:italic;font-size:14px; margin:0 0 10px 0;";
$__styles_04 = "color:#303030; text-transform:uppercase; font-size:18px; font-style:italic; padding-bottom:0px; margin-bottom:0px; line-height:110%;";
$__styles_05 = "padding-bottom:40px; ";
$__styles_06 = "border-bottom:1px dashed #d1d1d1; padding:5px 20px";
$__styles_07 = "padding: 5px 10px;border: 1px solid #B7B7B7;";
$__sty_td ="padding:0px;border:none; text-align:center;";
$__sty_m0 ="margin:0px;";

// reused elements
$__item_p_beg = "<p style='{$__styles_02}'><span style='{$__styles_02a}'>";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>{subject}</title>
</head>

<body>
<style type="text/css">
#outlook a{padding:0;}
body{width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin:0;padding:0;}
.ExternalClass{width:100%;}
.ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{line-height:100%;}
.bodytbl{margin:0;padding:0;width:100% !important;}
img{outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;display:block;max-width:100%;}
a img{border:none;}
p{margin:0em 0;}

table{border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;}
table td{border-collapse:collapse;}
.o-fix table,.o-fix td{mso-table-lspace:0pt;mso-table-rspace:0pt;}

body{background-color:white/*Background Color*/;}
table{font-family:Arial,Arial,sans-serif;font-size:14px;color:#707070;}
td,p{line-height:24px;color:#707070/*Text*/;}
td,tr{padding:0;}
ul,ol{margin-top:18px;margin-bottom:18px;}
li{line-height:24px;}

.body.wrap{background:#ffffff; border-right:1px solid #FEFEFE; border-left:1px solid #FEFEFE}

a{color:#21286f/*Contrast*/;text-decoration:none;padding:2px 0px;}
a:link{color:#21286f;}
a:visited{color:#21286f;}
a:hover{color:#21286f;}

.h1{font-family:georgia,sans-serif;font-size:26px;letter-spacing:0px;margin-bottom:16px;margin-top:2px;line-height:30px;}
.h2{font-family:georgia,sans-serif;font-size:20px;letter-spacing:0px;margin-top:2px;line-height:30px;}
h1,h2,h3,h4,h5,h6{font-family:georgia,sans-serif;font-weight:normal;}
h1{font-size:20px;letter-spacing:0px;margin-bottom:16px;margin-top:4px;line-height:24px;color:#303030}
h2{font-size:18px;margin-bottom:12px;margin-top:2px;line-height:24px;}
h3{font-size:14px;margin-bottom:12px;margin-top:2px;line-height:24px;}
h4{font-size:14px;font-weight:bold;}
h5{font-size:12px;}
h6{font-size:12px;font-weight:bold;}
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#21286F;}
h1 a:active,h2 a:active,h3 a:active,h4 a:active,h5 a:active,h6 a:active{color:#21286F !important;}
h1 a:visited,h2 a:visited,h3 a:visited,h4 a:visited,h5 a:visited,h6 a:visited{color:#21286F !important;}

.wrap.header{border-top:1px solid #FEFEFE/*Content Border*/;}
.wrap.footer{border-bottom:1px solid #FEFEFE;}
.wrap.body,.wrap.header,.wrap.footer{background-color:#FFFFFF/*Body Background*/;border-right:1px solid #FEFEFE;border-left:1px solid #FEFEFE;}
.padd{width:24px;}

.small{font-size:11px;line-height:12px;}
.separator{border-top:1px dotted #E1E1E1/*Separator Line*/;}
.btn{margin-top:10px;display:block;}
.btn img{display:inline;}
.subline{line-height:18px;font-size:16px;letter-spacing:0px;}
table.textbutton td{background:#efefef/*Text Button Background*/;padding:1px 14px 4px 14px;color:#707070;display:block;height:22px;border:1px solid #FEFEFE;vertical-align:top;}
table.textbutton a{color:#707070;font-size:13px;font-weight:normal;line-height:22px;width:100%;display:inline-block;}
div.preheader{line-height:0px;font-size:0px;height:0px;display:none !important;display:none;visibility:hidden;}

@media only screen and (max-device-width: 480px) {
body{-webkit-text-size-adjust:120% !important;-ms-text-size-adjust:120% !important;}
table[class=bodytbl] .subline{float:left;}
table[class=bodytbl] .padd{width:12px !important;}
table[class=bodytbl] .wrap{width:470px !important;}
table[class=bodytbl] .wrap table{width:100% !important;}
table[class=bodytbl] .wrap img{max-width:100% !important;height:auto !important;}
table[class=bodytbl] .wrap .m-100{width:100% !important;}
table[class=bodytbl] .m-0{width:0;display:none;}
table[class=bodytbl] .m-b{display:block;width:100% !important;}
table[class=bodytbl] .m-b-b{margin-bottom:24px !important;}
table[class=bodytbl] .m-1-2{max-width:264px !important;}
table[class=bodytbl] .m-1-3{max-width:168px !important;}
table[class=bodytbl] .m-1-4{max-width:120px !important;}
table[class=bodytbl] .m-1-2 img{max-width:264px !important;}
table[class=bodytbl] .m-1-3 img{max-width:168px !important;}
table[class=bodytbl] .m-1-4 img{max-width:120px !important;}
}

@media only screen and (max-device-width: 320px) {
table[class=bodytbl] .wrap{width:310px !important;}
}

</style>
<table class="bodytbl" cellspacing="0" cellpadding="0" width="100%"><tbody><tr>
<td align="center">

<table class="wrap" cellspacing="0" cellpadding="0" width="600"><tbody><tr>
<td height="24" align="center" valign="middle">
<div class="preheader">Ihre Anmeldung zu unserer Veranstaltung.</div>
<a name="top"></a>
</td>
</tr></tbody></table>
<table class="wrap header" cellspacing="0" cellpadding="0" width="600"><tbody>
<tr><td colspan="3" height="24"></td></tr>
<tr>
<td class="padd" width="24">&nbsp;</td>
<td align="center" valign="top">
<table class="o-fix" cellspacing="0" cellpadding="0" width="100%"><tbody><tr>
<td align="left" valign="top">
<table class="m-b" cellspacing="0" cellpadding="0" align="center" width="168"><tbody><tr>
<td class="small m-b" align="center" valign="middle">
<img data-id="6645" class="-handle" title="" alt="Logo-mit-Zusatz" label="Logo" editable="" height="68" border="0" width="168" src="http://test.swissclassics-wm.de/wp-content/uploads/2014/02/Logo-mit-Zusatz1.jpg">
</td>
</tr></tbody></table>
<table class="m-b" cellspacing="0" cellpadding="0" align="right" width="360"><tbody><tr>
<td height="0" align="right" valign="bottom">

</td>
</tr></tbody></table>
</td>

</tr></tbody></table>
</td>
<td class="padd" width="24">&nbsp;</td>
</tr>
<tr><td colspan="3" height="0"></td></tr>
</tbody></table>
<modules class="ui-sortable"><module custom="" active="" class="active ui-sortable-handle" block="" label="Full Size Image"><table class="wrap body" cellspacing="0" cellpadding="0" width="600"><tbody><tr>
<td align="center" valign="top">
<img data-id="4919" class="m-100" alt="Bild-Abrechnung-2" title="" editable="" label="Image max width 598 pixel" height="221" border="0" width="600" src="http://test.swissclassics-wm.de/wp-content/uploads/2015/11/Bild-Abrechnung-2.jpg">
</td>
</tr></tbody></table></module><module custom="" active="" class="active ui-sortable-handle" block="" label="1/1 Column" auto=""><table class="wrap body" cellspacing="0" cellpadding="0" width="600"><tbody>
<tr>
<td colspan="3" height="12"></td>
</tr>
<tr>
<td class="padd" width="24">&nbsp;</td>
<td align="left" valign="top">

<h1><single label="Headline">Anmeldebestätigung</single></h1>
<multi label="Body"><p>&nbsp;</p>
<p>Guten Tag <?php echo ($RSVP->last_name()? ($RSVP->first_name()? $RSVP->first_name():'').' '.$RSVP->last_name():'');?>,&nbsp;</p>
<p>&nbsp;</p>
<p>Wir bedanken uns für Ihre vorläufige Anmeldung. Sie werden in kürze von uns eine definitive Bestätigung erhalten. Nachstehend Ihre Angaben:&nbsp;</p>
<p>&nbsp;</p>
<p>Veranstaltung: <?php echo $EVENT->get_title();?>&nbsp;</p>
<p>Datum &amp; Uhrzeit: <?php echo $readable_time;?></p>
<p>Ort: <?php echo $location;?>&nbsp;</p>
<p>Teilnahme: <?php echo EVORS()->frontend->get_rsvp_status( $RSVP->get_rsvp_status(), $lang);?>&nbsp;</p>
<p>Reservierte Plätze: <?php echo $RSVP->get_prop_('count');?></p>
<p>Weiteren Gäste: <?php echo implode(', ', $RSVP->get_prop('names') );?>&nbsp;</p>
<p>&nbsp;</p>
<p>Wir bedanken uns für Ihre Anfrage und werden uns so schnell wie möglich bei Ihnen melden.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Freundliche Grüße&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Ihr EnergieForum Deutschland-Team</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p></a></p>

</multi><div class="btn">
</div>

</td>
<td class="padd" width="24">&nbsp;</td>
</tr>
<tr>
<td colspan="3" height="12"></td>
</tr>
</tbody></table></module><module custom="" active="" class="active ui-sortable-handle" block="" label="Separator"><table class="wrap body" cellspacing="0" cellpadding="0" width="600"><tbody>
<tr>
<td colspan="3" height="12"></td>
</tr>
<tr>
<td class="padd" width="24">&nbsp;</td>
<td align="center"><table class="separator" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td height="23">&nbsp;</td></tr></tbody></table></td>
<td class="padd" width="24">&nbsp;</td>
</tr>
</tbody></table></module></modules><table class="wrap footer" cellspacing="0" cellpadding="0" width="600"><tbody>
<tr>
<td class="padd" width="24">&nbsp;</td>
<td align="center" valign="top">
<table class="o-fix" cellspacing="0" cellpadding="0" width="100%"><tbody><tr>
<td align="left" valign="top">
<table cellspacing="0" cellpadding="0" align="left" width="550"><tbody><tr>
<td class="small m-b" align="left" valign="top">
<div><single label="CAN-SPAM"><span style="color: rgb(122, 122, 122); line-height: 10px; font-size: 8px;">Datenschutzhinweis:
Bitte beachten Sie, dass personenbezogene Daten zur Erfassung und Bearbeitung dieses Vorgangs aufgenommen werden können. Diese werden gemäß den Bestimmungen der DSGVO und des Bundesdatenschutzgesetzes 2018 (BDSG-neu) streng vertraulich behandelt. Gemäß Art. 13 DSGVO verweisen wir auf unsere ausführlichen Infortmationspflichten und Datenschutzerklärung, die Sie jederzeit unter
Datenschutzrichtlinien einsehen können.
Vertraulichkeitshinweis:
Diese Nachricht ist ausschließlich für die adressierte Person oder Organisation (Empfänger) bestimmt und könnte vertrauliche und/oder persönliche Informationen enthalten. Empfängern, für die diese Nachricht nicht bestimmt ist, ist es nicht gestattet, diese zu lesen, zu kopieren, erneut zu übertragen oder anderweitig zu verwenden oder Maßnahmen zu ergreifen, die auf dem Inhalt dieser Nachricht basieren. Sollten Sie diese Nachricht irrtümlich erhalten haben, bitten wir Sie, sich mit dem Absender in Verbindung zu setzen und diese Nachricht unverzüglich von Ihrem Computer zu löschen.
Vielen Dank für Ihre Mühe.
</span></single></div><br>
<div><single label="Copyright"><span style="color: rgb(122, 122, 122); line-height: 10px; font-size: 8px;">Vertraulichkeitshinweis:
Diese Nachricht ist ausschließlich für die adressierte Person oder Organisation (Empfänger) bestimmt und könnte vertrauliche und/oder persönliche Informationen enthalten. Empfängern, für die diese Nachricht nicht bestimmt ist, ist es nicht gestattet, diese zu lesen, zu kopieren, erneut zu übertragen oder anderweitig zu verwenden oder Maßnahmen zu ergreifen, die auf dem Inhalt dieser Nachricht basieren. Sollten Sie diese Nachricht irrtümlich erhalten haben, bitten wir Sie, sich mit dem Absender in Verbindung zu setzen und diese Nachricht unverzüglich von Ihrem Computer zu löschen.
Vielen Dank für Ihre Mühe.</span></single></div>
</td>
</tr></tbody></table>
<table cellspacing="0" cellpadding="0" align="right" width="168"><tbody><tr>
<td class="small" align="right" valign="top">





</td>
</tr></tbody></table>
</td>

</tr></tbody></table>
</td>
<td class="padd" width="24">&nbsp;</td>
</tr>
<tr><td colspan="3" height="24"></td></tr>
</tbody></table>
<table class="wrap m-b-b" cellspacing="0" cellpadding="0"><tbody><tr><td valign="top"></td></tr></tbody></table>
</td>
</tr></tbody></table>
</body></html>
 
Hallo,

kann nicht erkennen wo deine Daten herkommen.
Aber versuche bitte Folgendes.

Code:
header('Content-Type: text/html; charset=iso-8859-1');
 
Zurück