Bug with mailing Reply-to (with fix)
Permalink Browser Info Environment
Hi,
There is a bug with the mailing portion of the plugin when selecting Reply-to as an email field from the form. The result was that the reply to was always using the From email instead of the selected one.
To fix the issue:
models/formidable/mailing.php replace:
// Set Reply To
if ($this->reply_type == 'from') {
$this->reply_name = $this->from_name;
$this->reply_email = $this->from_email;
} elseif (intval($this->reply_type) != 0) {
if (!empty($this->elements[$this->from_type]->result)) {
$this->reply_name = '';
$this->reply_email = $this->elements[$this->from_type]->result;
}
}
with
// Set Reply To
if ($this->reply_type == 'from') {
$this->reply_name = $this->from_name;
$this->reply_email = $this->from_email;
} elseif (intval($this->reply_type) != 0) {
if (!empty($this->elements[$this->reply_type]->result)) {
$this->reply_name = '';
$this->reply_email = $this->elements[$this->reply_type]->result;
}
}
Thanks!
There is a bug with the mailing portion of the plugin when selecting Reply-to as an email field from the form. The result was that the reply to was always using the From email instead of the selected one.
To fix the issue:
models/formidable/mailing.php replace:
// Set Reply To
if ($this->reply_type == 'from') {
$this->reply_name = $this->from_name;
$this->reply_email = $this->from_email;
} elseif (intval($this->reply_type) != 0) {
if (!empty($this->elements[$this->from_type]->result)) {
$this->reply_name = '';
$this->reply_email = $this->elements[$this->from_type]->result;
}
}
with
// Set Reply To
if ($this->reply_type == 'from') {
$this->reply_name = $this->from_name;
$this->reply_email = $this->from_email;
} elseif (intval($this->reply_type) != 0) {
if (!empty($this->elements[$this->reply_type]->result)) {
$this->reply_name = '';
$this->reply_email = $this->elements[$this->reply_type]->result;
}
}
Thanks!
Type: | Discussion |
---|---|
Status: | Resolved |