Project

General

Profile

Actions

Feature #45238

closed

Add field recipientEmailField to core extension -> form

Added by Volker Groß almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2013-02-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
nightmare
Sprint Focus:

Description

Extend method setTo() so that it is possible to set the recipient email address from a from-field.

Possible Solution could be:

protected function setTo() {
        if (
            $this->typoScript['recipientEmail'] &&
            t3lib_div::validEmail($this->typoScript['recipientEmail'])
        ) {
            $this->mailMessage->setTo($this->typoScript['recipientEmail']);
        } elseif ($this->requestHandler->has($this->typoScript['recipientEmailField'])) {
            $this->mailMessage->setTo($this->requestHandler->get($this->typoScript['recipientEmailField']));
        }
    }

Actions #1

Updated by Thorsten Kahler almost 12 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Volker Groß
  • Priority changed from Must have to Should have
  • Complexity changed from no-brainer to nightmare

If you implement it like above this will end up in an open mail relay.

IMO additional measures have to be taken to avoid that this feature can easily be abused to send spam emails. This can be done but needs much more code than mentioned.

Actions #2

Updated by Volker Groß almost 12 years ago

I think it is worth a try, because sending a selfcopy from a contact-form isn't a special feature.
Perhaps it is the easier way to change the expected type from a string to a textobject, so that it is possible to get the field from GP-Array

Actions #3

Updated by Thorsten Kahler almost 12 years ago

  • Status changed from Needs Feedback to Rejected

There are extensions around which support sending a copy to an arbitrary recipient - including (debatably) effective spam protection.

If we open up the default form for this feature, we will have a spam issue. This feature has been disabled in the old form implementation for a reason many years ago.

Actions

Also available in: Atom PDF