Welcome, Guest
  • Page:
  • 1

TOPIC: custom email

custom email 1 year, 7 months ago #14212

Hello

i'm trying to make some code for the submit button but it won't work, can anyone help me?when i click the button, i need, validate_and_submit (enter the info in the database), then send a custom email to the visitor who filled the form, then ff_nextpag to show a thanks message

my code is:
function ff_download_button_action(element, action)
{
ff_validate_submit();


$this->execPieceByName('ff_InitLib');
$recipients = ff_getSubmit('Email');
$fromname = 'Het Anyu Team';
$subject = information from Anyu';
$from= ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it. ';
$body = 'this is the body<br><br>of the email;
$this->sendMail($recipients , 'your name', $from, $subject, $body);



ff_nextpage();
}

thanks !
  • pascalm
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.24 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany