Hello,
I have new question
Is it possible to send a completed form by email?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Send the form (data record) by email - possible?
-
- Posts: 68
- Joined: Tue Mar 09, 2021 6:45 pm
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Send the form (data record) by email - possible?
Hi,
Use the PHP After Save (AS) event to send the email.
In this example, cus_name, cus_phone, cus_email are Hash Cookies (or object IDs on the form)
Use the PHP After Save (AS) event to send the email.
In this example, cus_name, cus_phone, cus_email are Hash Cookies (or object IDs on the form)
Code: Select all
$body =
"Hello <br><br>".
"Some text ...<br><br>".
"<b>Name:</b> #cus_name#<br>".
"<b>Phone:</b> #cus_phone#<br>".
"<b>Email:</b> #cus_email#<br>";
$subject = "Email XYZ #cus_name#";
$from_name = "nuBuider";
$from_address = "admin@your_domain.com";
$to = "someone@something.com";
$cc = "";
$bcc = "";
nuSendEmail($to, $from_address, $from_name, $body, $subject, [], true, $cc, $bcc);
-
- Posts: 68
- Joined: Tue Mar 09, 2021 6:45 pm
Re: Send the form (data record) by email - possible?
ok, but when will the form be sent?
Save after each?
Save after each?
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Send the form (data record) by email - possible?
"After Save" is the event that is called after saving the form.
You could also send the form/email on a button click. Then you'd have to use a PHP Procedure and call that with nuRunPHPHidden()
You could also send the form/email on a button click. Then you'd have to use a PHP Procedure and call that with nuRunPHPHidden()
-
- Posts: 68
- Joined: Tue Mar 09, 2021 6:45 pm
Re: Send the form (data record) by email - possible?
do I have to change something in the "Setup => eMail Settings"?


-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
-
- Posts: 68
- Joined: Tue Mar 09, 2021 6:45 pm
Re: Send the form (data record) by email - possible?
it works very well as always
Is it also possible to send the email as html?
So that you can design the email.
Otherwise everything is one below the other and it doesn't look good: /
Is it also possible to send the email as html?
So that you can design the email.
Otherwise everything is one below the other and it doesn't look good: /
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Send the form (data record) by email - possible?
The 7th parameter is true, that means it should already be sent as HTML.
-
- Posts: 68
- Joined: Tue Mar 09, 2021 6:45 pm
Re: Send the form (data record) by email - possible?
thanks for the help, it works, but i have a change
How can I change the fact that the form content is always sent by email at 8:00 p.m. without having to go to the selection.
If you save the form, no email should be sent.
How can I change the fact that the form content is always sent by email at 8:00 p.m. without having to go to the selection.
If you save the form, no email should be sent.
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Send the form (data record) by email - possible?
Do you want to send all records as a separate email?