Hi guys, I'm trying to create a php script that'll send information gathered from a form and send it as an html email with the info arranged in tables. Can't seem to get it to work.
Here's the message part of the script (containing the table):
$to="o.oloyede@feeslimited.net";
$message="
<table width="500" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td><table width="500" border="0" cellspacing="0" cellpadding="8">
<tr>
<td colspan="2" bgcolor="#CDD9F5"><strong>APPLICATION FOR $course ?></strong></td>
</tr>
<tr>
<td width="168" bgcolor="#FFFFEC"><strong>PROGRAM:</strong></td>
<td width="290" bgcolor="#FFFFEC"><? $course ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"><strong>PERIOD:</strong></td>
<td bgcolor="#FFFFDD"><? $month ?></td>
</tr>
<tr>
<td bgcolor="#FFFFEC"><strong>NO OF PARTICIPANTS: </strong></td>
<td bgcolor="#FFFFEC"><? $no_of_participants ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"><strong>APPLICANT NAME: </strong></td>
<td bgcolor="#FFFFDD"><? $sendername ?></td>
</tr>
<tr>
<td bgcolor="#FFFFEC"><strong>APPLICANT EMAIL: </strong></td>
<td bgcolor="#FFFFEC"><? $sendermail ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"><strong>APPLICANT PHONE: </strong></td>
<td bgcolor="#FFFFDD"><? $senderphone ?></td>
</tr>
<tr>
<td bgcolor="#FFFFEC"><strong>COMPANY NAME: </strong></td>
<td bgcolor="#FFFFEC"><? $companyname ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"><strong>COMPANY ADDRESS: </strong></td>
<td bgcolor="#FFFFDD"><? $companyaddress ?></td>
</tr>
<tr>
<td bgcolor="#FFFFEC"><strong>APPLICANT DEPT. IN CO. </strong></td>
<td bgcolor="#FFFFEC"><? $department ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"><strong>APPLICANT POSITION: </strong></td>
<td bgcolor="#FFFFDD"><? $position ?></td>
</tr>
<tr>
<td bgcolor="#FFFFEC"><strong>COURSES APPLIED FOR: </strong></td>
<td bgcolor="#FFFFEC"><? $coursetitle ?></td>
</tr>
<tr>
<td bgcolor="#FFFFDD"> </td>
<td bgcolor="#FFFFDD"><? ----- ?></td>
</tr>
</table></td>
</tr>
</table>
<?
if(mail($to,$subject,$message,"From: $sendermail\n")) {
So like, what am I doing wrong here?