package de.website.Bean;

import org.apache.commons.mail.*;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 * Created by Tobi on 29.02.2016.
 */
@ManagedBean(name="sendMail")
@RequestScoped
public class sendBean {

    public void mailSend(String name, String email, String subject, String text){

        Email simMail = new SimpleEmail();
        simMail.setHostName("smtp.googlemail.com");
        simMail.setSmtpPort(465);
        simMail.setAuthenticator(new DefaultAuthenticator("username", "password"));
        simMail.setSSLOnConnect(true);

        try {
            simMail.setFrom(email);
            simMail.setSubject(subject);
            simMail.setMsg(text);
            //email.addTo("foo@bar.com");
            simMail.send();

        } catch (EmailException e){

        }
    }
}

@@ -324,16 +324,101 @@
 g text)%7B
+%0A        %0A        String authuser = %22...@gmail.com%22;%0A        String authpwd = %22xxxx%22;
 %0A%0A      
@@ -602,30 +602,25 @@
 tor(
-%22username%22, %22password%22
+authuser, authpwd
 ));%0A

Update sendBean.java