Code Monkey home page Code Monkey logo

t3ext-taywa_ccemailfield's Introduction

====================================== 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:

Typo3 specific:

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 *

t3ext-taywa_ccemailfield's People

Contributors

fabtho avatar

Watchers

 avatar  avatar  avatar

Forkers

beltshassar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.