Hi,
gleich zu meinem Problem. Ich bin bei Hosteurope und versuch gerade eine email mit Headern rauszuschicken, was mir aber nicht gelingt. Bei 1&1 hat das Scribt funktioniert.
Das Funktioniert
	
Das widerrum nicht
	
was mach ich falsch bin schon am verzweifeln
							
						
					gleich zu meinem Problem. Ich bin bei Hosteurope und versuch gerade eine email mit Headern rauszuschicken, was mir aber nicht gelingt. Bei 1&1 hat das Scribt funktioniert.
Das Funktioniert
PHP-Code:
	
	
mail('email','betreff','msg','From'); 
PHP-Code:
	
	
$eol="\n";        
$mime_boundary = "-mime_bound-".md5(time());
$headers = "From: ".$_SESSION['firma']." <".$_SESSION['email'].">".$eol;
$headers .= "Reply-To: ".$_SESSION['firma']." <".$_SESSION['email'].">".$eol;
$headers .= "MIME-Version: 1.0".$eol;
$headers .= "Content-Type: multipart/alternative; boundary=\"".$mime_boundary."\"".$eol.$eol;
$msg = "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
$msg .= strip_tags(str_replace("<br>", "\n", $text)).$eol.$eol;
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
$msg .= $html.$eol.$eol;
$msg .= "--".$mime_boundary."--".$eol.$eol;
mail($_POST['i_empf'],$betreff,$msg,$headers); 
          
 Moderator
							
						
							
						
							
						
Kommentar