我在我的电子邮件中添加了一个按钮。
单击按钮后,将运行以下公式:
@If(disablebutton="1";
@Return(@Prompt([Ok];"";"Thank you but you have already clicked once! :) "));
@Prompt([Ok];"";"Thank you for the click! :) "));
@MailSend( "abc@xyz.com"; ""; "" ; "I will be present at the event!" ;
"" ; "" ; [PriorityNormal] );
FIELD disablebutton:="1";
上面的公式基本上做了以下事情:
if(disableButton is 1){
Open prompt : you have already clicked and return without executing anything ahead
}else{
Open prompt : Thank you for the click!
}
send email to the specified email address with specified subject
set disableButton = 1
因此,当收件人打开电子邮件时,上述公式限制收件人只能单击一次按钮,因此只有一封邮件被发送到指定的电子邮件地址。
然而,问题是,如果用户关闭邮件并再次打开,相同的公式会从头开始运行,这有效地允许接收者再次发送邮件。
如此有效地,他可以通过关闭和打开邮件并重新单击按钮将尽可能多的邮件发送到指定的电子邮件地址。
如何处理?我希望 disableButton 的值永久存在,以便邮件只发送一次。