$message .= $notification["caption"] . "<br/>";␊ |
␊ |
if (array_key_exists("message", $notification))␊ |
$message .= "<br/>" . $notification["message"] . "<br/>";␊ |
$message .= "<br/>" . str_replace("\n", "<br/>", $notification["message"]) . "<br/>";␊ |
else if (array_key_exists("story", $notification))␊ |
$message .= "<br/>" . $notification["story"] . "<br/>";␊ |
$message .= "<br/>" . str_replace("\n", "<br/>", $notification["story"]) . "<br/>";␊ |
␊ |
if (array_key_exists("link", $notification))␊ |
if (startsWith($notification["link"], "http"))␊ |
|
␊ |
echo "</html></body>";␊ |
␊ |
$headers = "Message-ID: " . $notification['id'];␊ |
$headers = "Message-ID: <" . $notification['id'] . "@f2email>";␊ |
␊ |
send_email($to, $subject, $message, $headers);␊ |
}␊ |