for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Genkgo\Mail\Protocol\Smtp\Request;
use Genkgo\Mail\EmailAddress;
use Genkgo\Mail\Protocol\ConnectionInterface;
use Genkgo\Mail\Protocol\Smtp\RequestInterface;
final class MailFromCommand implements RequestInterface
{
/**
* @var EmailAddress
*/
private $envelope;
* MailFromCommand constructor.
* @param EmailAddress $envelope
public function __construct(EmailAddress $envelope)
$this->envelope = $envelope;
}
* @param ConnectionInterface $connection
* @return void
public function execute(ConnectionInterface $connection)
$connection->send(sprintf("MAIL FROM:<%s>%s", (string)$this->envelope, RequestInterface::CRLF));