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
Type: Feature/Change Request
Package: Net_SMTP
Package Version: 1.6.1
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
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");
}
...
?>
Previous Comments:
------------------------------------------------------------------------
[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.