equal
deleted
inserted
replaced
14 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
15 * |
15 * |
16 * @category Zend |
16 * @category Zend |
17 * @package Zend_Mail |
17 * @package Zend_Mail |
18 * @subpackage Protocol |
18 * @subpackage Protocol |
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
21 * @version $Id: Smtp.php 20096 2010-01-06 02:05:09Z bkarwin $ |
21 * @version $Id: Smtp.php 24593 2012-01-05 20:35:02Z matthew $ |
22 */ |
22 */ |
23 |
23 |
24 |
24 |
25 /** |
25 /** |
26 * @see Zend_Mime |
26 * @see Zend_Mime |
40 * Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT |
40 * Minimum implementation according to RFC2821: EHLO, MAIL FROM, RCPT TO, DATA, RSET, NOOP, QUIT |
41 * |
41 * |
42 * @category Zend |
42 * @category Zend |
43 * @package Zend_Mail |
43 * @package Zend_Mail |
44 * @subpackage Protocol |
44 * @subpackage Protocol |
45 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
45 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
46 * @license http://framework.zend.com/license/new-bsd New BSD License |
46 * @license http://framework.zend.com/license/new-bsd New BSD License |
47 */ |
47 */ |
48 class Zend_Mail_Protocol_Smtp extends Zend_Mail_Protocol_Abstract |
48 class Zend_Mail_Protocol_Smtp extends Zend_Mail_Protocol_Abstract |
49 { |
49 { |
50 /** |
50 /** |
325 $this->_data = true; |
325 $this->_data = true; |
326 } |
326 } |
327 |
327 |
328 |
328 |
329 /** |
329 /** |
330 * Issues the RSET command end validates answer |
330 * Issues the RSET command and validates answer |
331 * |
331 * |
332 * Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction. |
332 * Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction. |
333 * |
333 * |
334 * @return void |
334 * @return void |
335 */ |
335 */ |
344 $this->_data = false; |
344 $this->_data = false; |
345 } |
345 } |
346 |
346 |
347 |
347 |
348 /** |
348 /** |
349 * Issues the NOOP command end validates answer |
349 * Issues the NOOP command and validates answer |
350 * |
350 * |
351 * Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open. |
351 * Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open. |
352 * |
352 * |
353 * @return void |
353 * @return void |
354 */ |
354 */ |
358 $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2 |
358 $this->_expect(250, 300); // Timeout set for 5 minutes as per RFC 2821 4.5.3.2 |
359 } |
359 } |
360 |
360 |
361 |
361 |
362 /** |
362 /** |
363 * Issues the VRFY command end validates answer |
363 * Issues the VRFY command and validates answer |
364 * |
364 * |
365 * Not used by Zend_Mail. |
365 * Not used by Zend_Mail. |
366 * |
366 * |
367 * @param string $user User Name or eMail to verify |
367 * @param string $user User Name or eMail to verify |
368 * @return void |
368 * @return void |