mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c4d966c6a1
commit
f53062cd3b
@ -231,6 +231,14 @@ class Email extends ViewableData {
|
|||||||
$this->bcc = $val;
|
$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.
|
* Add a custom header to this value.
|
||||||
* Useful for implementing all those cool features that we didn't think of.
|
* Useful for implementing all those cool features that we didn't think of.
|
||||||
|
Loading…
Reference in New Issue
Block a user