Jump to content

PHP html mail


agentsmith

Recommended Posts

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">info@tctw.co.uk</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 info@tctw.co.uk 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 <info@tctw.co.uk>';
mail($to,$subject,$message,$headers);

header ("Location:../../../more/pregcomp.php");

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.