• Is my site secure?
    34 replies, posted
its already sending a mail but each time its not a valid mail, my mail server sends a fail to send email to me. So it would be nice to have a working validation, but the current one seems to work OK, since it checks if the domain has a mail server.
[QUOTE=yuriman;26104283]its already sending a mail but each time its not a valid mail, my mail server sends a fail to send email to me. So it would be nice to have a working validation, but the current one seems to work OK, since it checks if the domain has a mail server.[/QUOTE] Validation and mail server checking won't do squat if a user signs up with [email]sdfgvakjreyaasdhfvzksdgh@gmail.com[/email]. You'll still get error emails from your mail server unless you find the configuration option and switch that off. [editline]17th November 2010[/editline] [QUOTE=StankyJoe;26104021]I'm getting to the point where I simply run some very loose validation on the client-side (more than anything it helps the user by pointing out any obvious mistake), and send it anyway, and as you said if the email isn't valid, the user simply cannot confirm it.[/QUOTE] That's a good approach, as long as you provide an option for the user to submit the form even if your validator detects an 'invalid' email.
[QUOTE=yuriman;26104283]So it would be nice to have a working validation, but the current one seems to work OK, since it checks if the domain has a mail server.[/QUOTE] [code]filter_var("username@example.com", FILTER_VALIDATE_EMAIL);[/code]
Hey Fatal error: Call to undefined function checkdnsrr() in C:\inetpub\DownloadDynamicEffect\include\mail.php on line 7 Caused it by registering with the ');SQLInjectionOrNo;-- name.
[QUOTE=pikzen;26142745]Hey Fatal error: Call to undefined function checkdnsrr() in C:\inetpub\DownloadDynamicEffect\include\mail.php on line 7 Caused it by registering with the ');SQLInjectionOrNo;-- name.[/QUOTE] It's not related to any SQL injection, it's a bad script.
Sorry, you need to Log In to post a reply to this thread.