2015-07-24 04:37:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Email that gets sent to the people listed in the Email Recipients when a
|
|
|
|
* submission is made.
|
|
|
|
*
|
|
|
|
* @package userforms
|
|
|
|
*/
|
|
|
|
|
2016-07-21 07:53:59 +02:00
|
|
|
class UserFormRecipientEmail extends Email
|
|
|
|
{
|
2015-07-24 04:37:48 +02:00
|
|
|
|
2016-07-21 07:53:59 +02:00
|
|
|
protected $ss_template = "SubmittedFormEmail";
|
2015-07-24 04:37:48 +02:00
|
|
|
|
2016-07-21 07:53:59 +02:00
|
|
|
protected $data;
|
2015-07-24 04:37:48 +02:00
|
|
|
|
2016-07-21 07:53:59 +02:00
|
|
|
public function __construct($submittedFields = null)
|
|
|
|
{
|
|
|
|
parent::__construct($submittedFields = null);
|
|
|
|
}
|
2015-07-24 04:37:48 +02:00
|
|
|
|
2016-07-21 07:53:59 +02:00
|
|
|
/**
|
|
|
|
* Set the "Reply-To" header with an email address rather than append as
|
|
|
|
* {@link Email::replyTo} does.
|
|
|
|
*
|
|
|
|
* @param string $email The email address to set the "Reply-To" header to
|
|
|
|
*/
|
|
|
|
public function setReplyTo($email)
|
|
|
|
{
|
|
|
|
$this->customHeaders['Reply-To'] = $email;
|
|
|
|
}
|
2015-07-24 04:37:48 +02:00
|
|
|
}
|