Adds subject
@param string $subject
@return sFire\Mail\Mail
192483
public function subject($subject) {

		if(false === is_string($subject)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($subject)), E_USER_ERROR);
		}

		$this -> subject = $subject;

		return $this;
	}
85486
protected function setSubject(Mail\Message $oMessage, $sSubject)
    {
        if (isset($this->aRendererConfig['subject_prefix']) && $this->aRendererConfig['subject_prefix'] != '') {
            $sSubject = $this->aRendererConfig['subject_prefix'] . $sSubject;
        }

        $oMessage->setSubject($sSubject);

        return $this;
    }
470370
public function setSubject($subject = '')
    {
        $this->subject = $subject;
        $this->debug->debug(__FUNCTION__, 'setSubject: ', $this->subject);
    }
532524
function subject( $convert = true )
    {
//        return $this->Mail->subject;
        if ( !$convert )
            return $this->Subject;
        return $this->convertHeaderText( $this->Subject );
    }
1247164
public function createSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $this->om->persist($subject);
        $this->dispatch(new CreateSubjectEvent($subject));
        $this->om->endFlushSuite();

        return $subject;
    }
519083
public function createMessage($subject = null, $body = null, $contentType = null, $charset = null)
    {
        $message = Swift_Message::newInstance($subject, $body, $contentType, $charset);

        if(null !== $this->fromEmail) {
            
            if(null === $this->fromName) {
                $message->setFrom($this->fromEmail);
            } else {
                $message->setFrom($this->fromEmail, $this->fromName);
            }
            
        }

        return $message;
    }
225219
public function createMessageAction(Subject $subject)
    {
        $form = $this->container->get('form.factory')->create(new MessageType, new Message());
        $form->handleRequest($this->get('request'));


        if ($form->isValid()) {
            $message = $form->getData();
            $this->manager->createMessage($message, $subject);
        }

        return new RedirectResponse(
            $this->generateUrl('claro_forum_messages', array('subject' => $subject->getId()))
        );
    }
907484
public function addSubject(\SplSubject $subject, $subjectName = null): self
    {
        if ($subjectName === null) {
            $subjectName = get_class($subject);
        }
        
        if (
            array_key_exists($subjectName, $this->subjectList) &&
            $this->subjectList[$subjectName] !== $subject
        ) {
            throw new \Exception(
                'A subject with the name '.$subjectName.' already exist.',
                self::ERR_ADD_SUBJECT_ALREADY_EXIST
            );
        }
        
        $this->subjectList[$subjectName] = $subject;
        
        return $this;
    }
144680
public function sendMail($recipient, $subject, $htmlBody, $textBody = false)
    {
        $message = \Swift_Message::newInstance();
    
        // Subject
        $message->setSubject($subject);
    
        // From
        $fromEmail = $this->configurationManager->getSetting('mailer.sendFrom');
        $fromName = $this->configurationManager->getSetting('mailer.sendFromName');
        $message->setFrom(array($fromEmail => $fromName));
    
        // To
        $message->setTo($recipient);
    
        // HTML body
        $message->setBody($htmlBody, 'text/html');
        
        // Text body
        if ($textBody === false) {
            $textBody = $this->createTextBody($htmlBody);
        }
        $message->addPart($textBody, 'text/plain');
    
        $mailer = $this->getMailer();
        return $mailer->send($message);
    }
523504
public function attach(ObserverInterface $observer): SubjectInterface
    {
        if ($observer instanceof TemplateInterface) {
            parent::attach($observer);
        }
        return $this;
    }
1084294
public function email($email, $subject = null, $body = null) {
	    $email = 'mailto:'.$email;
	    if (!is_null($subject) || !is_null($body)) {
	        $email .= '?'.http_build_query(compact('subject', 'body'));
        }
	    return $this->encode($email);
    }
1238419
public boolean addSubject(String subject) {
        try {
            return add(new Meta(Element.SUBJECT, subject));
		} catch (DocumentException de) {
            throw new ExceptionConverter(de);
        }
    }
1203105
protected function composeMessage($body) {
        $mailer = $this->common_mailer;
        $message = $mailer->compose();
        $message = new \sazik\mailer\Message;
        $message->setBody($body);
        $message->setFrom($this->message['from']);
        $message->setTo($this->message['to']);
        $message->setSubject($this->message['subject']);    
        return $mailer;
    }
173576
public function setSubject($subject)
	{
		$this->getComposer()->subject = $subject;
		$this->getComposer()->subjectCharset = CHARSET;

		return $this;
	}
913631
public function setSubject($subject) {
    if (!is_string($subject)) {
      $error = sprintf("Subject given is not a string (Actual type: %s).",
               gettype($subject));
      throw new \InvalidArgumentException($error);
    }
    $this->message->setSubject($subject);
  }
692908
public function addSubjectPrefix($subjectPrefix, $roles)
    {
        if (!is_array($roles)) {
            $roles = array($roles);
        }
        if (is_array($subjectPrefix)) {
            foreach ($subjectPrefix as $oneSubjectPrefix) {
                $this->addSubjectPrefix($oneSubjectPrefix, $roles);
            }
        } else {
            if (isset($this->subjectPrefixes[$subjectPrefix])) {
                $this->subjectPrefixes[$subjectPrefix] = array_values(array_unique(array_merge(
                            $this->subjectPrefixes[$subjectPrefix], $roles)));
            } else {
                $this->subjectPrefixes[$subjectPrefix] = $roles;
            }
        }
        return $this;
    }
72915
public function addRecipient($recipient)
    {
        if (is_string($recipient)) {
            $recipient = new Recipient($recipient);
        } elseif (!$recipient instanceof Recipient) {
            throw new \InvalidArgumentException('$recipient must be a string or an instance of Recipient.');
        }

        $this->recipients[] = $recipient;

        return $this;
    }