close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Send email after insert into database using the MySQLi server behavior >>Data Management>>Insert Record

Thread began 10/24/2019 6:21 pm by sandy170299 | Last modified 10/29/2019 6:49 pm by sandy170299 | 323 views | 20 replies


Thanks, Ray. Using the Send Email option, I don't see the ability to choose which fields to include in the email. What am I missing? The insert script runs when the page loads, so I'm not sure what trigger to apply on the email script.

Here is my insert code and email code. It is inserting the transaction into the database, but the email isn't getting sent, and it's not redirecting.

<!-- ********************************************** -->
<!-- Insert Transaction in Transactions Table -->
<!-- ********************************************** -->
if ("" === "") {
$InsertQuery = new WA_MySQLi_Query($numeroseti);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "transactions";
$InsertQuery->bindColumn("toAcct", "i", "".$toAcct ."", "WA_DEFAULT");
$InsertQuery->bindColumn("fromAcct", "i", "".$fromAcct ."", "WA_DEFAULT");
$InsertQuery->bindColumn("toAcctNewBalance", "i", "".$toAcctNewBalance ."", "WA_DEFAULT");
$InsertQuery->bindColumn("fromAcctNewBalance", "i", "".$fromAcctNewBalance ."", "WA_DEFAULT");
$InsertQuery->bindColumn("amount", "i", "".$_SESSION["getRecipientAmount"] ."", "WA_DEFAULT");
$InsertQuery->bindColumn("description", "s", "".$_SESSION["description"] ."", "WA_DEFAULT");
$InsertQuery->bindColumn("timestamp", "s", "".$time ."", "WA_DEFAULT");
$InsertGoTo = "";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
if ("" === "") { //WA Universal Email
$Email = new WA_Email("transferaction");
$Email->Redirect = "";
$Email->From = "";
$Email->addTo("".($getRecipient->getColumnVal("user_email")) ."");
$Email->BodyFile = "webassist/email/templates/WebAssist-Block/Block_3.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "Transaction Receipt";


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...