0

What is the CORRECT method of the $mail objet that can be used to retrieve an email subject? I know you can set a subject with "setSubject()" but how do I retrieve the subject?

1 Answer 1

3

Assuming you're talking about Zend_Mail, see Zend_Mail::getSubject()

From SVN

/**
 * Returns the encoded subject of the message
 *
 * @return string
 */
public function getSubject()
{
    return $this->_subject;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.