Setter method for setting the single 'from' field

@param string $address email address for the sender
@param string $title   name of the sender (optional)

@return object instantiated $this
779884
public function setFrom($address, $title = '')
    {
        $this->headers['From'] = $this->formatEmailAddress($address, $title);

        return $this;
    }
63690
public function setEnvelopeFrom($envelope_from = null)
    {
        if (preg_match('%[\r\n]%', $envelope_from)) {
            throw new EmailValidationException(__('The Envelope From Address can not contain carriage return or newlines.'));
        }

        $this->_envelope_from = $envelope_from;
    }
930834
public function setTitle($title, $link = null)
    {
        $this->data['title'] = $title;
        if ($link) {
            $this->data['title_link'] = $link;
        }

        return $this;
    }
560689
public function setItem($link, $title)
    {
        $this->setLink($link);
        $this->setTitle($title);
        
        return $this;
    }
92659
protected function doMailFromCommand($address)
    {
        $address = $this->addressEncoder->encodeString($address);
        $this->executeCommand(
            sprintf("MAIL FROM:<%s>\r\n", $address), [250], $failures, true
            );
    }
466678
public function setTitle($title)
    {
        // Check if title already exists
        $headTitle = $this->selectElement('title')->item(0);
        if (!is_null($headTitle)) {
            $headTitle_new = $this->create('title', $title);
            $headTitle->parentNode->replaceChild($headTitle_new, $headTitle);
        } else {
            $headTitle = $this->create('title', $title);
            $this->appendToHead($headTitle);
        }

        return $this;
    }
1229459
public function email($address, $text=null, $title=null, $class=null) {
		if (is_null($text)) {
			$text = $address;
		}
		$attributes = $this->getHtmlAttributes(array(
			'title'=>$title,
			'class'=>$class
		));
		return "<a href='mailto:$address'$attributes>$text</a>";
	}
1334547
public function cc($address, $name = null)
    {
        if ($this->arrayOfAddresses($address)) {
            $this->cc += $this->parseAddresses($address);
        } else {
            $this->cc[] = [$address, $name];
        }

        return $this;
    }
1088178
public function setFrom(Email $from)
    {
        $this->message->setFrom($from->email);
        $this->message->setFromName($from->name);

        return $this;
    }
914919
public function title($title)
    {
        if (mb_strlen($title) > 80) {
            throw CouldNotCreateCard::titleLimitExceeded($title);
        }

        $this->payload['title'] = $title;

        return $this;
    }
1355350
public function setFromType($from_type)
    {
        if ($from_type == $this->from_type) return $this;
        $from_type = strtoupper($from_type);
        if (!isset(self::getAddressTypes()[$from_type])) {
            throw new \InvalidArgumentException(sprintf('The "%s" from_type is not a valid address type.', $from_type));
        }

        $this->from_type = $from_type;
        return $this;
    }
716035
public function setReplyToAddress(string $address, array $variables = []): self
    {
        $this->addRecipient('h:reply-to', $address, $variables);

        return $this;
    }
998322
public function setBounce(Address $address): Email
    {
        $this->message->setReturnPath($address->getEmail(), $address->getName());

        return $this;
    }
772556
public function getEmailIDByTitle($title) {
        $email = $this->model->where('title', $title)->first();

        // It is possible that we are asking for an email address that does not exist
        if ($email) {
            return $email->id;
        }

        return false;
    }
900793
public function setTitle($title)
    {
        $this->title = $title;
        $this->normalizedTitle = UrlUtil::normalize($title);
        return $this;
    }
58201
public function setFrom($from) {
        if (!is_array($from)) {
            $from = array($from, '');
        }
        $this->_params['from'] = $from;
        return $this;
    }
1342919
public function setTitle($title)
    {
        $returnValue = (bool) false;

        
		$this->title = $title;
		$returnValue = true;
        

        return (bool) $returnValue;
    }