Jump to content

Recommended Posts

<table width=732 cellpadding=3><tr bgcolor=#8d8d8d cellspacing=6><td width=10 align=center>LOC</td><td width=100>Part Number</td><td width=330>Description</td><td>Price</td><td>QTY</td></tr><tr cellspacing=6><td align=center bgcolor="#c0c0c0">1</td><td bgcolor="#c0c0c0" width="100">APH-FR-9908</td><td bgcolor="#c0c0c0" width="330">SAW MOUNTING FRAME (L/R)</td><td bgcolor="#c0c0c0">5.99</td><td bgcolor="#c0c0c0">12</td></tr><tr cellspacing=6><td align=center bgcolor="#dddddd">2</td><td bgcolor="#dddddd" width="100">WBPH-FR-9921</td><td bgcolor="#dddddd" width="330">GUIDE BAR FRAME</td><td bgcolor="#dddddd">3.54</td><td bgcolor="#dddddd">67</td></tr><tr cellspacing=6><td align=center></td><td></td><td></td><td bgcolor=yellow>309.06</td><td></td></tr></table><br /><br />
<u>Tyson Foods - Clarksville, AR</u>, Terry Cantwell<br />

street<br />
City, STATE zip<br />
770-770-770
<br /><br />
-770<br /><br />
450545054505<br />
saturday<br />

 

This is exactly what the email looks like, obviously not as pretty as I was expecting!

 

$emailbody = "
$parts<br /><br />
<u>$plantloc</u>, $name<br />
$address2<br /><br />
$telephone<br /><br />
$ponumber<br />
$shipping<br />
$notes

";

mail('email@email.com', 'Order Sheet', $emailbody);

Link to comment
https://forums.phpfreaks.com/topic/87442-solved-trouble-sending-html-email/
Share on other sites

<?php
// multiple recipients
$to  = 'aidan@example.com' . ', '; // note the comma
$to .= 'wez@example.com';

// subject
$subject = 'Birthday Reminders for August';

// 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: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);
?>

 

 

Example#4: http://us.php.net/manual/en/function.mail.php

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.