Hi,
My question may be very simple
How to know that subscriber has received my letter (i need get message or mail from my script)?
I need just to know statistics of my subscribers receiving (even not opening it) my newsletter.I need just code in PHP.
best regards

Recommended Answers

All 2 Replies

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>[B]Mail sent successfully.[/B]</p>');
else echo('<p>[B]Mail could not be sent[/B].</p>');

Tne code itself confirm you the newsletter has been received by your subscriber.

hi rajarajan07,
Does it mean this code will return error message if mail address even not existing as uuuuuuuuu@yahoo.com. if validate it as mail its OK but this main not real.
regards

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.