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

Recommended Answers

All 2 Replies

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

if($response)
   echo "Mail sent successfully";
else
   echo "error occured while sending a Mail";
Member Avatar for rajarajan2017
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 meeting, networking, learning, and sharing knowledge.