@@ 392-405 (lines=14) @@ | ||
389 | * |
|
390 | * @param $address |
|
391 | */ |
|
392 | protected function _doMailFromCommand($address) |
|
393 | { |
|
394 | $handlers = $this->_getActiveHandlers(); |
|
395 | ||
396 | $params = array(); |
|
397 | foreach ($handlers as $handler) { |
|
398 | $params = array_merge($params, (array)$handler->getMailParams()); |
|
399 | } |
|
400 | ||
401 | $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
|
402 | $this->executeCommand( |
|
403 | sprintf("MAIL FROM:<%s>%s\r\n", $address, $paramStr), array(250) |
|
404 | ); |
|
405 | } |
|
406 | ||
407 | /** |
|
408 | * Overridden to add Extension support |
|
@@ 412-425 (lines=14) @@ | ||
409 | * |
|
410 | * @param $address |
|
411 | */ |
|
412 | protected function _doRcptToCommand($address) |
|
413 | { |
|
414 | $handlers = $this->_getActiveHandlers(); |
|
415 | ||
416 | $params = array(); |
|
417 | foreach ($handlers as $handler) { |
|
418 | $params = array_merge($params, (array)$handler->getRcptParams()); |
|
419 | } |
|
420 | ||
421 | $paramStr = !empty($params) ? ' ' . implode(' ', $params) : ''; |
|
422 | $this->executeCommand( |
|
423 | sprintf("RCPT TO:<%s>%s\r\n", $address, $paramStr), array(250, 251, 252) |
|
424 | ); |
|
425 | } |
|
426 | ||
427 | /** |
|
428 | * Determine ESMTP capabilities by function group |