Bulk action from the gridview list, yii2 - yii2

I have a gridview list of customers with a checkbox column.
I would like to have a button that will send all my checked customers to a form action, that will receive the customers email address, and enable me to send a bulk email.
I have no idea how to send the data of the checked customers, or even only their emails, from the gridview list to the email action, and how to receive it in there.
How do I catch the checked data to send it with a link?
Thanks.

Related

Track checkbox checked with email or other info

I'm working with a client who has an order form, and needs to track that each customer selected "I agree to terms and conditions" checkbox at checkout. They'll need to be able to go back and check this data.
The checkout is via a ClickFunnels order form. I added the checkbox via HTML, no problem there. The customers needs to be able to track that each client clicks the agree button, and it needs to be associated with the email or phone number.
Was thinking I may be able to do this with the User ID of the Google Tag Manager? I could assign the input from user email to the User ID in Tag Manager?
Any help would be appreciated.

How Do I Create an html email button that will send back to me an emailed response?

I have a small ecommerce business and from time to time a customer will say that they never ordered the item and I am forced to refund their money due to lack of any confirmation from the customer as to his actually placing the order.
I would like to add either an hmtl button or any sort of tool to the emails that i sent you with the customer's receipt. The customer will get the email with his receipt and also within the email will be a button ("I approve This Transaction") for him to click on that will send me back a confirmation email.
Please advise.
Thanks,
Don
There are 2 ways to do this.
With a mailto: link, this would open the users default email client where they would have to send the email as an extra step.
URL parameter in a normal href/button link (ie: www.yoursite.com/yourpage.php?email=their#email.com). You would link to a webpage (yourpage.php) that would pass that URL parameter (in this example "email", but can be any other info you pass through) you can then parse that URL parameter in your webpage and have it email you automatically based on that info.
Option 2 is the way to go, but requires some coding knowledge (PHP for example). Also, in order to set up unique URL parameters, you'll need a system that uses merge tags to create unique values for each email you send. I'd suggest you should use a transactional email service provider for this.

How can I get a URL to a submitted form?

I'd like to use visualping.io to get notification when a permit has been filed with my city for a particular address. The city publishes permits but only through a POST submitted form. How can I get a GET URL for the submitted form which I can provide to visual ping? Is there a service which will provide a GET url that in turn submits the form for me?

Google Apps Script: Access the form key that allows user to edit their responses

With a Google Apps for Education domain, we can create forms that allows users to edit their response.
This sends a link to the submitter with the url that they can use to edit their response. Essentially this is the url of the form with a unique key at the end.
At the time of submission, I would like to be able to collect this key and store it with the form data for each user.
We are creating an Alumni website (where all users will be authenticated to our domain), and we'd like to have an update my profile page. This would be blank the first time the user submits. But then when they come back, I'd like a script to search the username against submitted entries, and if the user is found, direct them to the link that allows them to update their profile.
At the time of first submission, Google automatically sends the url to the user. However, t is unlikely that years later, they will stil have this email, so if we could provide the link for them, it would be far easier for the user.
I have similar problem. One way to solve, is to implement a Gmail plugin(if all users are gmail users). The plugin can parse the message (extractor), and get the key/or the whole URL. But you need to saveit on some database, in order to have acccess later.
If we got some way to list form keys, it should be much better!

How to update DB records using a dynamically generated link

I have a requirement to generate an email to administrator whenever a user sign up. Administrator will approve the registration by clicking on a link provided in email and database should get updated, without admin to login to administrator console.
I am looking for best practice to code this scenario with keeping application security intact. I can generate email with dynamic rendom value attached to the link(provided in email) URL, but i am not sure how to keep a track of this on application side?
Any thoughts?
You could generate a random validation number when the user signs up, and store it in the database with the user record. Then generate an email with a link such as
http://foo.bar.com/approveUser.action?userId=<theUserId>&validationToken=<theRandomNumber>
When the approveUser action is invoked, check if the validation token stored in the database for the given user ID matches with the token sent as parameter, and if so, approve the user.