The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Email Event Trigger - Upon Finalize? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Email Event Trigger - Upon Finalize? (/showthread.php?tid=732) |
Email Event Trigger - Upon Finalize? - crunchers - Jun 6th, 2010 Hello, again. I'm not sure if this should be a feature request since I was unable to find any information on it... I was wondering if it's at all possible to trigger email events when a form is finalized? I previously used a hack on the previous version of FT to accomplish this. The reason being that I use it as a form processor for PayPal and I require only certain emails to be sent for notification purposes when payment has been completed. e.g. Inform an Admin of the submission, BUT only send a noficiation to client and user provided the form has been finalized (i.e. payment has cleared). Any ideas, Ben? RE: Email Event Trigger - Upon Finalize? - Ben - Jun 6th, 2010 Hey crunchers, Ah yes! In 2.0.0 the ft_finalize_submission() function didn't send emails. This was fixed in an earlier version of 2.0.1. I'd suggest upgrading: 2.0.1 is entirely bug fixes and there's been quite a few - I'll be making it the standard release in a week or two. But in terms of informing administrators BEFORE submissions are finalized, I'm not sure this is really possible... you can send emails at any point of your API form by passing a "send_emails" => true key-value pair in the $params hash to the ft_api_process_form() function, but that will trigger ALL email templates that have been assigned to the "on submission" event. Hmm... interesting! But yeah, I think you're rather out of luck for the moment. Sorry about that! - Ben RE: Email Event Trigger - Upon Finalize? - crunchers - Jun 7th, 2010 (Jun 6th, 2010, 10:00 PM)Ben Wrote: Hey crunchers, Thanks, Ben. I wasn't aware 2.0.1 was available. That really helps. If I understand you correctly, ft_finalize_submission() in 2.0.1 now acts as a trigger for sending emails? If so, then that's excellent! No problem about the other request. I was merely being hopeful. (-: Thanks again, Ben. RE: Email Event Trigger - Upon Finalize? - avinash_zena - Jun 7th, 2010 hi, this seem a bit ridiculous. I m not a good developer, i have successfully uploaded and installed the app but the mail functions is not at all working not even for the forgot password, do i need to change any values or setup mail in the core. Please Help! RE: Email Event Trigger - Upon Finalize? - Ben - Jun 8th, 2010 Hi avinash, If the forgot password isn't working and you didn't enable Swift Mailer, then it's either sending the password notification to a different email address or the mail() function isn't working on your server. :-( Try uploading a test_email.php file to your server containing this content: PHP Code: <?php - and replace the email address with your own. See if the email gets sent. However, if you have access to the database, you can manually re-set the password. Just go here and enter your new password: http://docs.formtools.org/encrypt.php That will provide the encrypted version. Copy and paste that and overwrite the old password value for your account in the database. That will then let you log in. Good luck! - Ben |