I have made a form that once submitted sends a set of details to the client email using the mail() in php.
The email has html encoding with two buttons: Accept and Reject.
Is there a way to capture the click event from inside the email if Accept or Reject button is pressed in the received email? If yes, how? (Can't find any info on this) And will it also work on all email clients? I am currently testing it in my gmail account.
Related
So I am trying to build a system that works like the facebook email notifications where a user receives an email based on some actions performed by another user.
Then, the first user may reply to that email and the second user will also get their reply.
Now I understand how to send basic emails. But the thing about this is that there is no direct communication between the 2 users.
Every email is sent through me and I then relay the mail to the appropriate recipient.
I am trying to do this using Laravel 5.7.
I don't actually understand what you want to do, but basically you can use events and listeners to send email to specific user after some action , so if your email contains a link that redirect users to some point in the application you can trigger the event when the user enter the redirecting point.
here is Laravel doc about events
https://laravel.com/docs/5.7/events
I want to send confirmation message to user after submitting form.
the information recorded should be sent to client & confirmation message send to user.
Is there any setting in contact form 7 or we need to do it using custom ?
Does anyone know how to do it ?
Ya you can send confirmation email to user.
Just use Mail 2 option which will be triggered only when the email is successfully sent to client.
https://contactform7.com/faq/can-i-implement-autoresponder/
You can use contact 7 forms for it but you may have to then hardcode where is it going. So if you go onto the page the form is on you will see
<input type="submit"/>
If you change this code to something along the lines of
<input type="submit" href="example#example.com"/>
When clicked it should then send the required data to the correct e-mail address. Make sure that your form has the method of "POST" so the data actually gets sent over.
Also with contact form 7 there is an option to do e-mail forms, you can then set the e-mail to your e-mail for testing and your clients e-mail too. Send some dummy data over and job should be a good'n. Just look at the different options you have available.
This link should help you below:
https://contactform7.com/setting-up-mail/
I need to open outlook when clicking a button on a webpage.
It must create a new mail with prepopulated fields.
Here's my problem :
The mail body must contain some dynamically generated HTML.
I tried with a mailto but apparently it can only contain plaintext.
What other solution do I have ? (The mail can't be sent server side because the mail must come from client mail address).
Thanks for your help !
mailto only works with plaintext.
For Outlook users you can create your own oft-file and offer a download.
See this example (Just follow the 5 steps)
http://apps.devryeducationgroup.com/brandguidelines/devryuniversity/email-templates.htm
Your second option would be:
Just ask for the customers-email address, and sent him the full email with populated fields as an email. Then he just has to click "answer" and you get the information beeing send from the customers email adress.
(Like saying, "thx for contacting us, please confirm your request by answering this mail")
I am coding Mailchimp Template, what I have to do is add a Text box in Email template and the one who receives email will enter some value in text box and press send button in email, and entered value will be sent to my email address as email, I know very well how to code mailchimp templates but really have no idea to add textbox and gets its value and send to my email account Please guide me how to do it.
You will need to create a HTML form with a POST or GET action that sends the data to a server, then from there you can email the value to yourself. You cannot rely on the viewer's computer to send the email.
Is there a PHP method to fetch the default email of a user? same effect if you would use mailto:
Example scenario:
If you use mailto:some#email.com to open mail client it would automatically fill in the "From" field of the form with the user's email.
I want to do the same effect to my PHP form. I want to fill in with the default email address with the user email. so when they press contact, it would automatically fill in the email field with the users default email.
Is possible?
Note: should also be compatible with mobile phone, like iPhone and Android.
Thanks!
No, your PHP script cannot track your clients (users) and see what their email addresses are.
The mailto: links only open the default mail client on the user's machine and fills in the proper details (taken from your mailto: link).
No, there is not possible way of doing that.