예제 #1
0
파일: test2.php 프로젝트: bobrock/vesuvius
 * @about        Developed in whole or part by the U.S. National Library of Medicine
 * @link         https://pl.nlm.nih.gov/about
 * @license	 http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 * @lastModified 2011.0308
 */


//error_reporting(E_STRICT);
ini_set( "display_errors", "stdout");
error_reporting(E_ALL);


// set approot since we don't know it yet
$global['approot'] = getcwd()."/../../";

// include required libraries
require_once("../../mod/lpf/lib_lpf.inc");
require_once("../../conf/sahana.conf");
require_once("../../3rd/adodb/adodb.inc.php");
require_once("../../inc/handler_db.inc");
require_once("../../inc/lib_uuid.inc");
require_once("../../inc/lib_image.inc");

$body = "Here is a test message.";

echo "ok\n";

$p = new pop();
$p->sendMessage("*****@*****.**", "*****@*****.**", "subject", $body, $body);
echo $p->spit();
예제 #2
0
 private function replySuccess($uuid, $id)
 {
     // figure out the event name
     $q = "\n\t\t\tSELECT *\n\t\t\tFROM incident\n\t\t\tWHERE incident_id = '" . mysql_real_escape_string((int) $id) . "';\n\t\t";
     $result = $this->db->Execute($q);
     $event = $result->fields['description'];
     $subject = "[AUTO-REPLY]: People Locator Record Submission SUCCESS";
     $bodyHTML = "\n\t\t\tWe received the person record you submitted " . $event . ". It has been added to our registry and will show up in search results in a few minutes.<br>\n\t\t\t<br>\n\t\t\tYou can always view the record for this person (and updates) at the following url:<br>\n\t\t\t<a href=\"https://" . $uuid . "\" target=\"_blank\">https://" . $uuid . "</a><br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<b>- People Locator</b><br>\n\t\t\t<br>\n\t\t";
     $bodyAlt = "\n\t\t\tWe received the person record you submitted " . $event . ". It has been added to our registry and will show up in search results in a few minutes.\n\n\t\t\t\n\n\t\t\tYou can always view the record for this person (and updates) at the following url:\n\n\t\t\thttps://" . $uuid . "</a>\n\n\t\t\t\n\n\t\t\t\n\n\t\t\t- People Locator\n\n\t\t\t\n\n\t\t";
     $p = new pop();
     $p->sendMessage($this->senderAddress, "", $subject, $bodyHTML, $bodyAlt);
 }