Edit report at http://pear.php.net/bugs/bug.php?id=18735&edit=1
ID: 18735
Updated by: [email protected]
Reported By: dominik at dokdok dot com
Summary: Gmail OAuth support
-Status: Open
+Status: Assigned
Type: Feature/Change Request
Package: Net_SMTP
Package Version: 1.6.1
PHP Version: 5.3.6
-Assigned To:
+Assigned To: jon
Roadmap Versions:
New Comment:
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: jon
Could you convert those examples into a unit test? It's the best way we
have to
ensure expected behavior as the code evolves.
Previous Comments:
------------------------------------------------------------------------
[2011-08-15 19:15:45] dominikgehl
usage for 3legged:
<?php
require './SMTP.php';
$host = 'smtp.gmail.com';
$from = '';
if (! ($smtp = new Net_SMTP('ssl://' . $host, 465))) {
die('Unable to instantiate Net_SMTP');
}
if (PEAR::isError($e = $smtp->connect())) {
die($e->getMessage() . "\n");
}
if (PEAR::isError($e = $smtp->auth($from, array('consumer_key' => '',
'consumer_secret' => '', 'token' => '', 'token_secret' => ''),
'XOAUTH'))) {
die($e->getMessage() . "\n");
}
...
?>
------------------------------------------------------------------------
[2011-08-15 19:14:54] dominikgehl
usage for 2legged:
<?php
require './SMTP.php';
$host = 'smtp.gmail.com';
$from = '';
if (! ($smtp = new Net_SMTP('ssl://' . $host, 465))) {
die('Unable to instantiate Net_SMTP');
}
if (PEAR::isError($e = $smtp->connect())) {
die($e->getMessage() . "\n");
}
if (PEAR::isError($e = $smtp->auth($from, array('consumer_key' => '',
'consumer_secret' => ''), 'XOAUTH'))) {
die($e->getMessage() . "\n");
}
...
?>
------------------------------------------------------------------------
[2011-08-15 19:09:26] dominikgehl
Added #patch bug:18735;patch:xoauth.patch;revision:1313431766;.
------------------------------------------------------------------------
[2011-08-15 19:06:25] dominikgehl
Description:
------------
Added support for XOAUTH
http://code.google.com/apis/gmail/oauth/protocol.html#smtp
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18735&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.