Moin zusammen,
ich versuche in Abhängikeit einer Checkbox eine zweite Mail zusammenzustellen und an eine andere Adresse zu senden. Bei der zweiten Adresse funktioniert es leider nicht.
Danke
HH
// declare globals used in this piece
global $mosConfig_mailfrom, $mosConfig_fromname;
// include FacileForms standard library
$this->execPieceByName('ff_InitLib');
//1. Adresse
// send the mail
$this->sendMail(
$mosConfig_mailfrom, // email addr of submitter (1)
$mosConfig_fromname.' - Message', // name of submitter (1)
ff_getSubmit('i_email'), // email of recipient (2)
ff_getSubmit('_subject'), // subject of the mail (3)
ff_getSubmit('_hinweis') // body of the mail (3)
);
//2. Adresse
function ff_zimmerreservierung_action(element, action)
{
if (ff_getElementByName('zimmerreservierung').checked){
// send the mail
$this->sendMail(
$mosConfig_mailfrom, // email addr of submitter (1)
$mosConfig_fromname.' - Message', // name of submitter (1)
ff_getSubmit('i_EMail_Kur'), // email of recipient (2)
ff_getSubmit('_subject'), // subject of the mail (3)
ff_getSubmit('Textbereich')); // body of the mail (3)
};
}