From f53062cd3b831a1a7442b3e64aef3c2d525b42cf Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 25 Mar 2009 22:02:30 +0000 Subject: [PATCH] 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 --- email/Email.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/email/Email.php b/email/Email.php index e9b9c5f1d..bf2ba2aa8 100755 --- a/email/Email.php +++ b/email/Email.php @@ -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.