agentsmith Posted February 8, 2009 Share Posted February 8, 2009 I dont know what i done cause this has worked before I just edited it for someone else. The problem is its saying unexpected tstring ?? $customer = $row_email['email']; $name = $row_email['fname']; $password = md5($row_email['password']); $username = $row_email['username']; $image = "tctw.ctcmedia.co.uk/style/images/mainlogo.png"; // set email params $to = $customer; $subject = "Ceramic Tile Warehouse Registration Confirmation"; $message = " <html> <head> <title>HTML email</title> </head> <body> <img src="../style/images/mainlogo.png" width="700" height="150" /> <table width="510" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2">Dear ".$name.",</td> </tr> <tr> <td width="61"> </td> <td width="449"> </td> </tr> <tr> <td colspan="2"><p>Thank you for registering with the Ceramic Tile Warehouse website. You have now got full access to the;</p> <ul> <li>Online Shop</li> <li>Forum</li> </ul> <p>Your access details are;</p> <p>Username = ".$username."</p> <p>Password = ".$password." </p> <p>If you want to subscribe to our monthly updates please log onto your account and click the updates in the notifications option.</p> <p>If you have any queries please contact</p> <p align="center">[email protected]</p> <p align="left">Many Thanks</p> <p align="left"> </p> <p align="left">The Ceramic Tile Warehouse</p></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2"><div align="center">****************</div></td> </tr> <tr> <td colspan="2"><div align="center">This email comes from an unmonitered address please donot reply to it as you will not get a reply. Please contact us at [email protected] or speak to one of our staff by clicking store finder on our website</div></td> </tr> <tr> <td colspan="2"><div align="center">****************</div></td> </tr> </table> </body> </html> "; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // More headers $headers .= 'From:The Ceramic Tile Warehouse Ltd <[email protected]>'; mail($to,$subject,$message,$headers); header ("Location:../../../more/pregcomp.php"); Link to comment https://forums.phpfreaks.com/topic/144401-php-html-mail/ Share on other sites More sharing options...
ferozsho Posted February 9, 2009 Share Posted February 9, 2009 hi, just change this [ " ] => [ \" ] in your $message... $message = " <html> <head> <title>HTML email</title> </head> <body> <img src=\"../style/images/mainlogo.png\" width=\"700\" height=\"150\" /> Its work and tested... http://www.asmaria.com/devserver/[email protected]&fname=tester Link to comment https://forums.phpfreaks.com/topic/144401-php-html-mail/#findComment-757953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.