php mail code64
Hallo,
Ik heb een php script, waarbij ik tex and html emails onderscheid.
Het probleem is dat alleen bij outlook express ik onleesbare code binnenkrijg zoals:
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: base64
RGVhciBFdXJvQXNpYW1hdGNoIHVzZXIsIFxuClRvZGF5IHlvdSByZWdpc3RlcmVkIHRvIG91ciBF
dXJvYXNpYW1hdGNoIHNlcnZpY2U6CllvdSB3aWxsIGdldCB0aGUgZmlyc3QgMTAgY3JlZGl0cG9p
bnRzIGZvciBmcmVlLiBUaGlzIG1lYW5zIHlvdSBoYXZlIGEgZnVsbCBtZW1iZXJzaGlwIGFuZCBj --> etc etc
Bij yahoo of andere webmails krijg ik geen problemen. De script die ik gebruik is als volgd:
$mail = "[email protected]";
$headers = "From: EuroAsiaMatch<$mail>\r\n";
//specify MIME version 1.0
$headers .= "MIME-Version: 1.0\r\n";
//unique boundary
$boundary = uniqid("EuroAsiaMatch");
//tell e-mail client this e-mail contains//alternate versions
$headers .= "Content-Type: multipart/alternative" .
"; boundary = $boundary\r\n\r\n";
//message to people with clients who don't
//understand MIME
$headers .= "This is a MIME encoded message.\r\n\r\n";
//plain text version of message
$headers .= "--$boundary\r\n" .
"Content-Type: text/plain; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("$bodytext"));
//HTML
$headers .= "--$boundary\r\n" .
"Content-Type: text/html; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("$bodyhtml"));
//send
$mail = "[email protected]";
$mailr = $_POST['email'];
mail("$mailr", "You are a member of EuroAsiaMatch!", "", $headers);
?>
weet iemand wat er aan de hand is?
Bedankt
Danny
Ik heb een php script, waarbij ik tex and html emails onderscheid.
Het probleem is dat alleen bij outlook express ik onleesbare code binnenkrijg zoals:
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: base64
RGVhciBFdXJvQXNpYW1hdGNoIHVzZXIsIFxuClRvZGF5IHlvdSByZWdpc3RlcmVkIHRvIG91ciBF
dXJvYXNpYW1hdGNoIHNlcnZpY2U6CllvdSB3aWxsIGdldCB0aGUgZmlyc3QgMTAgY3JlZGl0cG9p
bnRzIGZvciBmcmVlLiBUaGlzIG1lYW5zIHlvdSBoYXZlIGEgZnVsbCBtZW1iZXJzaGlwIGFuZCBj --> etc etc
Bij yahoo of andere webmails krijg ik geen problemen. De script die ik gebruik is als volgd:
$mail = "[email protected]";
$headers = "From: EuroAsiaMatch<$mail>\r\n";
//specify MIME version 1.0
$headers .= "MIME-Version: 1.0\r\n";
//unique boundary
$boundary = uniqid("EuroAsiaMatch");
//tell e-mail client this e-mail contains//alternate versions
$headers .= "Content-Type: multipart/alternative" .
"; boundary = $boundary\r\n\r\n";
//message to people with clients who don't
//understand MIME
$headers .= "This is a MIME encoded message.\r\n\r\n";
//plain text version of message
$headers .= "--$boundary\r\n" .
"Content-Type: text/plain; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("$bodytext"));
//HTML
$headers .= "--$boundary\r\n" .
"Content-Type: text/html; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$headers .= chunk_split(base64_encode("$bodyhtml"));
//send
$mail = "[email protected]";
$mailr = $_POST['email'];
mail("$mailr", "You are a member of EuroAsiaMatch!", "", $headers);
?>
weet iemand wat er aan de hand is?
Bedankt
Danny
Zet het even tussen de code tags(gewoon openen met <?php is ook genoeg)
Verder heb ik echt geen idee wat het probleem kan zijn.
Verder heb ik echt geen idee wat het probleem kan zijn.
niemand? ik moet erbij vertellend dat ik een plaatje als link meestuur van de waarde $value is :
if ($_FILES['userfile']['name']!=""){
$value = '<img src=http://www.euroasiamatch.com/klanten/'.$_POST[username].'/'.$_FILES['userfile']['name'].' style: width=120px>';
} else {
$value = 'NO PHOTO';
}
De foto bestaat en komt nogmaals wel goed binnen, niet als attachment, maar als link.
Ik heb op google deze threat gevonden, misschien heeft iemand enig idee?
http://www.helpmij.nl/forum/archive/index.php/t-102352.html
if ($_FILES['userfile']['name']!=""){
$value = '<img src=http://www.euroasiamatch.com/klanten/'.$_POST[username].'/'.$_FILES['userfile']['name'].' style: width=120px>';
} else {
$value = 'NO PHOTO';
}
De foto bestaat en komt nogmaals wel goed binnen, niet als attachment, maar als link.
Ik heb op google deze threat gevonden, misschien heeft iemand enig idee?
http://www.helpmij.nl/forum/archive/index.php/t-102352.html




