note 108964 deleted from function.mail by sp

From: Date: Fri, 08 Jun 2012 16:16:22 +0000
Subject: note 108964 deleted from function.mail by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188466@lists.php.net to get a copy of this message
Note Submitter: palarvay at gmail dot com ---- Hello everybody? Miért nem működik ez a levél küldés? A sortörés problémák miatt alkalmaznék táblázatot. Why does not go this mail function? Because line braking problem I taken the table: <?php $ip = $_SERVER['REMOTE_ADDR']; $date = date('Y/m/d h:i:s a', time()); $address = "to@domain.hu"; $subject = "Konverzió!"; // message $message = ' <html> <head> <title>Adwords Conversion</title> </head> <body> <p>Anybody is my webdomain.hu site!</p> <table> <tr> <td>Date: </td><td>$date</td> </tr> <tr> <td>IP addr: </td><td>$ip</td> </tr> </table> </body> </html> '; $header = "MIME-Version: 1.0\n"; $header .= "Content-Type: text/html; charset=utf8\n"; $header .= "From: DOMAIN <from@domain.hu>\n"; // if error, return $header .= "Errors-to: from@domain.hu\n"; // body to HTML: mb_internal_encoding("UTF-8"); $subject = mb_encode_mimeheader($subject, "UTF-8", "Q"); $success = mail($address, $subject, $message, $header); // //if ($success) { //echo "OK, email sent"; //} else { //echo "NO, something error"; //}; ?>

« previous php.notes (#188466) next »