-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.rst
101 lines (76 loc) · 2.47 KB
/
README.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
======================================
Add ccEmailField to postProcessor of the sysext Form (TYPO3 V 7 LTS)
======================================
What does it do?
========================
This extension takes the content a field and uses this content (an e-mail address) when sending the form as CC address.
To do this MailPostProcessor.php of form is extended, see here: https://github.com/TYPO3-CMS/form/blob/master/Classes/PostProcess/MailPostProcessor.php
German:
Diese Erweiterung nimmt den Inhalt ein Feldes und nutz diesen Inhalt (eine E-Mail Adresse) beim Versenden des Formulars als CC Adresse. Damit erhält der Absender des Formulars eine Kopie.
Example of a Configuration as Form Content
============================================
```
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
ccEmailField = email # uses field named "email"
recipientEmail = [email protected]
senderEmail = [email protected]
subject = Test of ccEmailField
messages {
success = TEXT
success {
value = <p>See you</p>
}
}
}
}
10 {
type = email
name = email
placeholder = Email
required = required
label {
value = Email
}
}
20 = SUBMIT
20 {
type = submit
name = submit
value = Submit
}
```
Link to Extension Repository
========================
https://typo3.org/extensions/repository/view/taywa_ccemailfield
========================
This is the extended class:
https://github.com/TYPO3-CMS/form/blob/master/Classes/PostProcess/MailPostProcessor.php
Discussions around this:
- https://stackoverflow.com/questions/29074323/typo3-tx-form-copy-to-sender-recipient-copy
- https://forge.typo3.org/issues/32950
- https://forge.typo3.org/issues/68771
Typo3 specific:
- https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Xclasses/Index.html
- https://somethingphp.com/extending-classes-typo3/
- http://insight.helhum.io/post/130876393595/how-to-configure-class-loading-for-extensions-in
Tested in TYPO3 7 LTS only
========================
I tested this in TYPO3 7 LTS, not in TYPO3 8
History
========================
v 0.0.1: initial version
Licence
========================
Public Domain
Author
========================
Fabian Thommen, [email protected], taywa gmbh, Zürich, 2016
Tools
================================================
zip this extension for upload to extension repro on typo3.org
zip -r ../taywa_ccemailfield_0.0.1.zip *