I've decided to go with sending the Emails as html. Seems to fit clients needs better (he wants simple unlike his last cart) I've started by trying to define a table with the code below. I'm not a php guru but learning. I'll post (hopefully my solution) when I'm done.
Code: Select all
// create mail message to merchant
$subject = $mail_merchant_subject;
$title = $mail_merchant_title;
$footer = $mail_merchant_footer;
SendEmail($dbts_contactemail, $subject, $title, $orderid, $timestamp, false, $mail_merchant_footer);
function SendEmail($mailto, $subject, $title, $orderid, $timestamp, $maskcardno, $footer)
{
require 'admin/config.php';
require 'admin/paypal_settings.php';
$header = "From: ".$GLOBALS['dbts_title']."<".$GLOBALS['paypal_email'].">"."\r\n";
$header .= "Reply-To: $paypal_email"."\r\n";
$header .= "MIME-Version: 1.0"."\r\n";
$header .= "Content-Type: text/plain; charset=ISO-8859-1"."\r\n";
$header .= "Content-Transfer-Encoding: 8bit"."\r\n";
$header .= "X-Mailer: PHP v".phpversion();
//New Code--------------------------------------------------------------------------------
// message
$message = '
<html>
<head>
<title>Invioce</title>
</head>
<body>
<table width="642" border="1" cellpadding="1"
cellspacing="1" bordercolor="#000000">
<tr>
$message = "<td width="210">$title:</td>
</tr>
$message = "<td width="419">$alpha." $orderid " </td>"
$message = "<td width="419">$order_date_label." $timestamp " </td>"
$message = "<td width="419">$customer_info_label."." </td>"
</tr>
Steve. Its my wifes site but I do most of the marketing etc. If you just send a message through the contact form http://www.aivahealth.co.uk/contact.php.
Cheers