Feature #45238
closedAdd field recipientEmailField to core extension -> form
0%
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'])); } }
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.
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
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.