ENHANCEMENT Allow setting the "Reply-To" header by calling Email->ReplyTo('my@emailhere.com')

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73655 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-03-25 22:02:30 +00:00
parent c4d966c6a1
commit f53062cd3b

View File

@ -231,6 +231,14 @@ class Email extends ViewableData {
$this->bcc = $val;
}
/**
* Set the "Reply-To" header with an email address.
* @param string $email The email address of the "Reply-To" header
*/
public function replyTo($email) {
$this->addCustomHeader('Reply-To', $email);
}
/**
* Add a custom header to this value.
* Useful for implementing all those cool features that we didn't think of.