Scrollup
[insert_php]
date_default_timezone_set(‘Asia/Calcutta’);
$htmlHeader = “\n\nCheck out the health facilities available for FREE in Delhi</head”;
$htmlFooter = “”;
$message = “

Did you know that the Aam Aadmi Party government in Delhi offers several tests, medicines, diagnostic checks and life-saving surgeries entirely for free in its clinics and hospitals?

Check out the entire list by visiting this web page and make sure you, your friends and family avail of these facilities.

“;
$body = “$htmlHeader\n$message\n$htmlFooter”;
if(isset($_POST[‘from’])) {
extract($_POST);
$dt = date(“d M Y h:i:s A”);
$csv = “\”$dt\”,\”$from\”,\”$emails\”,\”$checkbox\”\n”;
file_put_contents(“/var/www/html/customlogs/join_delhi_healthcare_revolution.log”, $csv, FILE_APPEND);
$subject = “$from wants you to check out the health facilities available for FREE in Delhi”;
if($personalMessage == ‘Your personal message here’)
$personalMessage = ”;
if(!empty($personalMessage))
$message .= “\n\r\n\r$personalMessage”;
//echo “

" . print_r($_POST, true) . "

“;
//$message = wordwrap($message, 70, “\r\n”);
$headers = “MIME-Version: 1.0” . “\r\n”;
$headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”;
$headers .= ‘From: Aam Aadmi Party ‘ . “\r\n” ;
$headers .= ‘Reply-To: ‘ . “\r\n” ;
$headers .= ‘X-Mailer: PHP/’ . phpversion();

if(mail($emails, $subject, $message, $headers) === FALSE)
echo “

Oops! Error sending Could not send email</h3";
else
echo "

Thank you $from!

Emails sent to: $emails

You can continue to send more emails


“;
}
[/insert_php]

.ourFont {font-family: Georgia !important; font-size:16px !important;}

Thank you for joining hands in Delhi’s healthcare revolution!

At the bottom of this page is a PDF document listing tests, medicines and surgeries available for free to all Delhi residents in clinics and hospitals of Delhi government. You can view it, download it and keep it handy.

But don’t just stop here. Send this information to 10 friends and relatives right now, and make sure the benefits of Delhi’s health revolution reach your near and dear ones.

Subject: Check out the health facilities available for FREE in Delhi

Message:[insert_php] echo $message; [/insert_php]




Download Delhi Government Healthcare Services Guide (PDF)

function nameChanged() {
var from = document.getElementById(‘from’).value;
document.getElementById(“subject”).innerHTML = from + ” wants you to check out the health facilities available for FREE in Delhi”;
}
function validEmail(e) {
var filter = /^\s*[\w\-\+_]+(\.[\w\-\+_]+)*\@[\w\-\+_]+\.[\w\-\+_]+(\.[\w\-\+_]+)*\s*$/;
return String(e).search (filter) != -1;
}
function emailsChanged() {
var emails = document.getElementById(’emails’).value.split(‘,’);
emails.forEach(function(email) {
if(!validEmail(email))
alert(“Bad email: ” + email + “, please fix!”);
});
}
document.getElementById(“send2friends”).onkeypress = function(e) {
var key = e.charCode || e.keyCode || 0;
if (key == 13) {
e.preventDefault();
}
}