Swift_Mime_SimpleMessage::addFrom PHP 메소드

addFrom() 공개 메소드

If $name is passed this name will be associated with the address.
public addFrom ( string $address, string $name = null )
$address string
$name string optional
    public function addFrom($address, $name = null)
    {
        $current = $this->getFrom();
        $current[$address] = $name;
        return $this->setFrom($current);
    }

Same methods

Swift_Mime_SimpleMessage::addFrom ( string $address, string $name = null ) : Swift_Mime_SimpleMessage