Please any one reply me................

Recommended Answers

$response=mail(...pass proper parameters.....);

if($response)
   echo "Mail sent successfully";
else
   echo "error occured while sending a Mail";
Jump to Post

All 2 Replies

$response=mail(...pass proper parameters.....);

if($response)
   echo "Mail sent successfully";
else
   echo "error occured while sending a Mail";
Member Avatar
if (mail($to, $subject, $message,
	"To: Natarajan <$to>\n".
	"From: $name <$email>\n".
	"cc: Raja Rajan<$cc>\n" .
	"X-Mailer: PHP 5.x\n".
	"MIME-Version: 1.0\n" .
	"Content-type: text/html; charset=iso-8859-1"))
	echo ('<p>Mail sent successfully.</p>');
else echo('<p>Mail could not be sent.</p>');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.