Sending email after updating a record.. Coldfusion
Posted: 2012-02-22 23:49
I'm trying to take your idea about sending email after updating a record, but it is not working? (your code is below)
- When I apply it to my page and add the Check Box, it will not work..
- In the past, using ColdFusion, I have used Send Email via ADDT .. but not with a Check Box
When the email goes out,
- All of my Email variables such as {rsLocatesDetail.ticket} are not populating with dynamic data?
Lastly, what would the check box "condition" be if using ColdFusion (the PHP condition is {POST.mail} == "1")
Thanks,
jlig
---------------------------------------------------------------------
Sometimes you want to send an email only under certain circumstances after updating a record.
To do that follow the following procedure.
Create your Custom Form or NeXTensio form as usual.
Add a "Checkbox" next to the buttons at the bottom of the page using the following values:
<input name="mail" type="checkbox" id="mail" value="1">
Add your "Send Mail" behaviour
Under the "Advanced Tab" select the transactions you want this email to be sent;
Insert, Update or delete, Give it a high priority and of type "AFTER"
Click each transaction in turn In the condition field and enter the following for every transaction type:
{POST.mail} == "1"
Click OK
When the user wants to send an email he / she then needs to tick the checkbox.
The script check if the value of the checkbox called "mail" is set to "1"
If it is set, the send mail SB will execute and the email will be sent.
If the value is not set, the email will not be sent.
- When I apply it to my page and add the Check Box, it will not work..
- In the past, using ColdFusion, I have used Send Email via ADDT .. but not with a Check Box
When the email goes out,
- All of my Email variables such as {rsLocatesDetail.ticket} are not populating with dynamic data?
Lastly, what would the check box "condition" be if using ColdFusion (the PHP condition is {POST.mail} == "1")
Thanks,
jlig
---------------------------------------------------------------------
Sometimes you want to send an email only under certain circumstances after updating a record.
To do that follow the following procedure.
Create your Custom Form or NeXTensio form as usual.
Add a "Checkbox" next to the buttons at the bottom of the page using the following values:
<input name="mail" type="checkbox" id="mail" value="1">
Add your "Send Mail" behaviour
Under the "Advanced Tab" select the transactions you want this email to be sent;
Insert, Update or delete, Give it a high priority and of type "AFTER"
Click each transaction in turn In the condition field and enter the following for every transaction type:
{POST.mail} == "1"
Click OK
When the user wants to send an email he / she then needs to tick the checkbox.
The script check if the value of the checkbox called "mail" is set to "1"
If it is set, the send mail SB will execute and the email will be sent.
If the value is not set, the email will not be sent.