aebstract Posted January 23, 2008 Share Posted January 23, 2008 <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); Quote Link to comment https://forums.phpfreaks.com/topic/87442-solved-trouble-sending-html-email/ Share on other sites More sharing options...
The Little Guy Posted January 23, 2008 Share Posted January 23, 2008 <?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 Quote Link to comment https://forums.phpfreaks.com/topic/87442-solved-trouble-sending-html-email/#findComment-447215 Share on other sites More sharing options...
aebstract Posted January 23, 2008 Author Share Posted January 23, 2008 This might just be what I need, I am going to try and get this working with my information and see if it solves my problem. Will update topic with either a response of help or topic solved. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/87442-solved-trouble-sending-html-email/#findComment-447220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.