Hi All, I'm having this problem with sending HTML mail to my yahoo.com email. When I send mail to my yahoo.com mail, somehow, I don't receive it but if I send it to my other email like [email protected], I can read it in my webmail. I have been trying different combinations in my header but still haven't gotten a solution.
Below is the test code I used: // recipient $to = '[email protected]' ; // subject $subject = 'Test HTML page sent by PHP mail function'; // message $message = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body> <p>Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr> </table> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: Henson <[email protected]>' . "\r\n"; $headers .= 'From: TestMailer <[email protected]>' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); Thanks in advance --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
