betaReMailR
Say 'no' to disposable emails.
The Real eMail checkeR
Simple version - 4 steps:
- Paste this code instead of your input textfield for the email address:
<script type='text/javascript' src='http://remailr.com/api/remailr_js.php'> </script>
- Add the following id to your submit button:
id='remailrSubmitButton'
e.g.:<input type='submit' name='submitDomain' value='Submit' class='button' id='remailrSubmitButton'>
- Add the following to your form tag:
onSubmit='return remailrCheckedMail();'
e.g.:<form name='submitForm' method='post' action='index.php' id='submitForm' onSubmit='return remailrCheckedMail();'>
- Create a file remailr_ajax_call.php with the following content:
<?php header("Content-Type: text/xml"); echo file_get_contents("http://remailr.com/api/remailr_ajax_call.php?q=".$_GET['q']); ?>This file and the file with your form need to be in the same folder.
Explanation:
- The javascript will produce a textfield with the name 'userMail'. The field will be linked via an ajax call to the database of email domains that should be blocked.
- The submission of the form is blocked by disabling the submit button. The script disables a button with the id 'remailrSubmitButton' when a blocked email is entered.
- This ensures that the user passed by the email field when he clicks submit. The field can be filled after a reload or a back without having been checked.
- Cross-site ajax calls are not allowed. The seperate php file makes the ajax call.
ReMailR offers many options
Please find the detail here.The 'hello world' of ReMailR
A simple subscription form asking for an email address: newsletter.html<html> <head><title>Newsletter subscription</title></head> <body>Please enter your email to subscribe to the newsletter. <form name='submitForm' method='post' action='your_action_here' id='submitForm' onSubmit='return remailrCheckedMail();'> email: <script type='text/javascript' src='http://remailr.com/api/remailr_js.php'> </script> <input type='submit' name='search' value='Submit' class='button' id='remailrSubmitButton'> </form></body></html>And a second file in the same directory (as described above): remailr_ajax_call.php
<?php
header("Content-Type: text/xml");
echo file_get_contents("http://remailr.com/api/remailr_ajax_call.php?q=".$_GET['q']);
?>| ReMailR | Instructions | Options | FAQ | About | ![]() |
| © Matias Otto | |||||
