Hi. I have set up a little program that allows someone to enter data into a database and of course e-mail me the fact that they have indeed done so.
I revieve the mail no problems, but the formating is un attractive. I wish some lines to be in bold, others to have a line under it, and I was wondering if it is possible to send the detail in a table.
I found that if I use the normal coding e.g. <b> for bold the email simply shows the <b> rather than making it bold... ( I am sure someone is now having a good laugh at my in experiance). However I have 2 PHP manuals and non actually cover this.
my scrip is
$emess = "A new Purchase Order has been Created. ";
$emess.= " ";
$emess.= "\n\n\t$newno$JobLetter$JobNo$ucode\n\n";
$emess.= "";
$emess.= "By $Name \n\n";
$emess.= " $select \n\n";
$emess.= "Quantity $qty1 \n";
$emess.= " $desc1\n";
$emess.= " Unit cost $$up1 Total Cost $$total1 Code $rad1 \n\n";
$emess.= "Quantity $qty2\n ";
$emess.= " $desc2\n";
$emess.= " Unit cost $$up2 Total Cost $$total2 Code $rad2 \n\n";
$emess.= "NOTES \n\n $textcomment ";
$ehead="From: PO@abc.com\r\n";
$subj = "ADHOC PO No. $newno$JobLetter$JobNo$ucode";
$mailsend=mail("a.morgan@abc.com","$subj","$emess","$ehead");
If anyone could assist me I would be greatful
Andy