Here is the php code :-
<?PHP
// +----------------------------------------------------------------------+
// | PHP version 4.0 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// |
http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// |
license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Original Author <contact_bogomil@dir.bg> |
// | GPL:Eurosoft Ltd <eurosoft@xi-tec.com> |
// +----------------------------------------------------------------------+
//
// $ID EUBGRSMAL180601$
$today=date("M-d-Y");
if ($pic !="Pictures"){
// Path to your picture dir.
$base="http://example.com/design/mail";
$message_n="<html><head>
</head><table align=center border=1 bordercolor=$color><tr>
<td><center><img src=$base/$pic.jpg></center><p></td></tr>
<td><center>Message from:$sender Send date:$today</center></td></tr>
<td><font color=$color size=$size>$message</p>
</font></td>
</tr></table>
</body><html>";
}
else {
$message_n="<html><head>
</head>
<body bgcolor=$bgcolor>
<font size=+1 color=yellow>Message from:$sender <hr>$today<br></font>
<center>
<u><font size=+2 color=$color>Subject:</u>$subject
<center>
</font>
</u><font size=+2 color=$color>Message:</font><font color=$color size=$size></u>$message
</font>
</body><html>";
}
$headers .= "MIME-Version: 1.0 \n" ;
$headers .= "From:$sender \n";
$headers .= "X-Sender:Admin<Who@me.network> \n";
$headers .= "X-Mailer:webFormMailer v1.0001 \n";
$headers .= "X-Priority:$Priority \n";
$headers .= "Return-Path: <@softf.eurosoft.bg> \n";
$headers .= "Content-Type:text/html;charset=iso-8859-1 \n";
$mail_fn=mail($recipient,$subject,$message_n,$head ers);
if($mail_fn==0)
{
echo"Oops....";
}
else
echo"Done";
echo"<br><a href=javascript
:history.go(-1)>Back to M.center</a>";
?>