I know I could simply make a html form on a website and email a link to it, or send the html as an email which posts to the website and try to deal with the errors/warnings for different peoples mail clients.
But, due to a specific request from a client, I am wondering if there is a way I could send an email, a questionnaire, with the same checkbox elements which then user receiving the questionnaire simply checks and sends back as a reply to the sender?
This is not very well supported across email clients, and will even throw some scary looking error messages to your recipients. You will be much better served linking to a landing page.
More info: http://www.campaignmonitor.com/resources/will-it-work/forms/
Email only supports html and css. I think Google has something like that, but it is not widely supported.
Generally, neither html of css can submit a form or (if the form even displays) acknowledge which form fields are populated/checked. Pretty much all you have is hyperlinks.
Passing parameters in your hyperlink would allow you to pre populate a form, but that is about as tricky as you can get.
Something like this:
Register Now
You could then use PHP for example to populate the landing page form with the values. I know it doesn't help much for a questionnaire, but that's all we have to work with in email.
Related
I would like to set up a form on my Shopify website. I want the content of the form to be sent to me via email. So I would like to use the get method and set the forms action attribute to a URL that will send me an email with the submissions.
The question is, how do I send an email through URL's? Or do I need to use API for this? Is it possible at all? Or is it gonna be possible for me to submit the form to a mystore.myshopify.com page?
I have already tried searching some similar questions, but nothing was satisfying.
Sending an email is something that is done on a back-end of the server. With Shopify it's not possible because you don't have access to the back-end.
But the default Shopify contact form does send you an email when it's submitted, so you can use it. You can modify its fields, copy it to other pages, etc.
If you want more customization options, or more control you'll have to use a service. Shopify recommends Wufoo or Jotform. But you can use whatever you like.
One additional thing. If you have a server somewhere where you can access the back-end, you can send your form data there and email it yourself with PHP or any other language that can run there and send emails.
I am developing a page, which will be sent to people as email. Just like advertisement emails which we usually get. I wanted to know that it will support only html-php or can we use javascript and jquery also in that. Thank You for help!
Generally no you cant use javascript in an email body, but it will depend on the email client used to view the email as to whether it's allowed or not. It'd bad practise generally, and if you do this the majority of your mails will not get to their destination. Also bear in mind the HTML and CSS supported by email clients is limited, so don't expect a page that works in your web browser to look the same on an email client.
You can of course use javascript to help render the body of the message, and then extract the HTML/CSS that's been generated, but don't include any of the javascript code itself in the body that gets sent.
This looks like a duplicate of Is JavaScript supported in an email message?...
As Russell says, email clients generally do not support scripting. Maybe one or two do, but the coverage will be very low.
what i want is the countdown timer which will be displaying in the
user email.
But... if what you're interested in is a countdown, you can do that in most email clients. If you have a webserver with PHP, here is a tutorial on how to do this. This won't work in Outlook 2007/10/13, but the coverage is pretty good considering it's interactive inside an email.
There are also online tools to accomplish a countdown timer, though I can't personally vouch for those.
I know it's possible to have a polling survey in Mailchimp, but can we have a text field where people can submit responses as well, inline within the email, without being sent to a landing page?
If you were to code the email yourself, you would probably be able to include an input field. The thing is though, it won't work. Input fields are part of forms, and forms need a location to submit the entered data to. Email clients don't support that kind of data transfers, ergo: nope, not possible!
Final thought: if using a landing page isn't an option, you can always create an email link that simply allows your recipients to reply to the email with their answer to your question. Might not be the most elegant solution, but in some situations it does the trick just fine.
I have an html form within an email (I know this isn't the best practice). I am able to have the form transmit data via POST in gmail, however, in iphone mail it the POST array is empty. Does anyone have any insight into this, could it possibly be a security setting, etc? Thanks!
A lot of email clients block POST requests from being sent from within an email. Allowing POST requests is dangerous in many ways. It can make phishing and XSS emails even more malicious. If you want your email to function properly in every email client (which is hard as it is), you should leave out POST requests. If possible, do a GET instead by appending a query string to a URL. That would have 100% support, so hopefully you can accomplish what you want to do like that.
Can anyone show me a script or example of a form results being emailed with submit? Does jquery have any advantage with this?
Erik
jQuery might be the magical unicorn of scripting frameworks but even that isn't able to actually send an email.
Typically you would serialise your form values and pass these back to some server-side method to process; be that a PHP script, .Net method or whatever.
If you HAVE to have an email pop up when the user clicks a link or button, you might get some of the way by employing a (rather unattractive) approach like this.
But the bottom line really is, "Please don't".
Typically a website that sends an email as a result of submission will do this emailing on the server side (where a suitably configured SMTP client exists). You can use jQuery to validate the form on the client side (although you will still need to do server side validation) and to submit the form, which will POST it to program / script on the server side that will email whatever text it should email.
It might have some advantages like client side validation and "nice effects" or no refresh after send.
You must no that jquery isnt the one "sending the email" you might want to do this with php or any other methods just google email form or similar. :)
Here is a good example:
http://trevordavis.net/blog/ajax-forms-with-jquery/
Good luck!
the only advantage jQuery has with submitting the results is that you don't have to post to the page that actually does the submissions. What's nice about that is that the page doesn't refresh, and the user doesn't leave what he's currently doing. You can do a jQuery.ajax() POST to the email script, on the server, to process the email submission, and the user will still be on the page.