From 023a90eba43c51519943f58724fa51d373a1974d Mon Sep 17 00:00:00 2001 From: davehauenstein Date: Thu, 16 Apr 2009 14:58:31 +0000 Subject: added spanish translation, minor updates to email: link and title werent being passed along, updated subject git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@33 d4e419ec-0920-11de-bbfd-a7c1bc4c261e --- email.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'email.php') diff --git a/email.php b/email.php index a83b97a..4791fc1 100644 --- a/email.php +++ b/email.php @@ -28,11 +28,13 @@ //FILTER DATA - $from = $filters->filter($_POST['from']); - $to = $filters->filter($_POST['to']); - $to = array_map('trim', split(',', $to)); - $note = $filters->filter($_POST['note']); - $key = $filters->filter($_POST['key']); + $from = $filters->filter($_POST['from']); + $to = $filters->filter($_POST['to']); + $to = array_map('trim', split(',', $to)); + $note = $filters->filter($_POST['note']); + $key = $filters->filter($_POST['key']); + $pageUrl = $filters->filter($_POST['pageUrl']); + $pageTitle = $filters->filter($_POST['pageTitle']); if(!Readability::validateSecureKey($key)) { @@ -77,7 +79,7 @@ $mailer = new Zend_Mail_Transport_Smtp('smtp.googlemail.com', Array( 'auth' => 'login', 'username' => 'readability@arc90.com', - 'password' => 'arc90inc', + 'password' => '*******', 'ssl' => 'ssl', 'port' => 465, )); @@ -105,7 +107,7 @@ $mail->addTo($toAddress); } - $mail->setSubject("Arc90 Readability: {$pageTitle}"); + $mail->setSubject("Sent via Readability: {$pageTitle}"); try { @@ -232,7 +234,7 @@ public static function hasValidParams() { - $requiredParams = array('from', 'to', 'note', 'key'); + $requiredParams = array('from', 'to', 'note', 'key', 'pageTitle', 'pageUrl'); $sentParams = array_keys($_POST); foreach($requiredParams as $required) { @@ -371,7 +373,7 @@

Email Page

-
+
/> -- cgit v1.2.3