Questions tagged [email-validation]

Email validation is the process of deciding whether a given string is a valid email-address or not. This is distinct from email verification, which is necessary to determine if a given email address really exists, and (usually) whether a particular person has access to it (e.g. during an account signup process).

1243 questions
34
votes
5 answers

Generating confirmation code for an email confirmation

Using PHP, what are some ways to generate a random confirmation code that can be stored in a DB and be used for email confirmation? I can't for the life of me think of a way to generate a unique number that can be generated from a user's profile.…
sdot257
  • 10,046
  • 26
  • 88
  • 122
34
votes
11 answers

How to block Disposable Email Addresses in your website's registration form?

I would like to know of the possible ways to block disposable email addresses from registering in my website. For simplicity, let's take the example where the registration form of the website is done with HTML and PHP. Any ideas, solutions or…
CompilingCyborg
  • 4,760
  • 13
  • 44
  • 61
31
votes
4 answers

Does PHP's filter_var FILTER_VALIDATE_EMAIL actually work?

After reading various posts I decided not to use REGEX to check if an email is valid and simply use PHP's inbuilt filter_var function. It seemed to work ok, until it started telling me an email was invalid because I had a number in it. ie …
willdanceforfun
  • 11,044
  • 31
  • 82
  • 122
31
votes
3 answers

PHP email validation

For PHP what is the best email validation using preg, NOT ereg because it's deprecated/removed. I don't need to check if the website exists (it's not like maximum security). I've found many ways with ereg but they (obviously) aren't good practice.
Mark Lalor
  • 7,820
  • 18
  • 67
  • 106
31
votes
9 answers

TSQL Email Validation (without regex)

Ok, there are a million regexes out there for validating an email address, but how about some basic email validation that can be integrated into a TSQL query for Sql Server 2005? I don't want to use a CLR procedure or function. Just straight…
Eric Z Beard
  • 37,669
  • 27
  • 100
  • 145
31
votes
6 answers

How many @ symbol can be in an email address?

Is there any rule for having a specified amount of @ symbol in any email id. Just come to my mind if we're to check if an email id is valid or not using PHP.
droidlabour
  • 567
  • 2
  • 8
  • 21
28
votes
5 answers

Remove "@" sign and everything after it in Ruby

I am working on an application where I need to pass on the anything before "@" sign from the user's email address as his/her first name and last name. For example if the user has an email address "user@example.com" than when the user submits the…
Smoke
  • 1,052
  • 1
  • 10
  • 24
25
votes
14 answers

Android Email Validation on EditText

I have one edittext and I would to to write email validation in my Editttext this is a xml code
BekaKK
  • 2,173
  • 6
  • 42
  • 80
25
votes
6 answers

Email address validation in C# MVC 4 application: with or without using Regex

I have an MVC 4 web application and I need to enter and validate some email addresses, without sending an email to the user's email address. Currently I am using basic regex email validation with this…
dlght
  • 1,406
  • 1
  • 18
  • 35
24
votes
6 answers

Symfony2 - How to validate an email address in a controller

There is an email validator in symfony that can be used in a form: http://symfony.com/doc/current/reference/constraints/Email.html My question is: How can I use this validator in my controlelr in order to validate an email address? This is possible…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
23
votes
3 answers

What's the REST way to verify an email?

When a user register to my web application I send an email to verify his inbox. In the email there are a link to a resource like this: GET /verify/{token} Since the resource is being updated behind the scenes, doesn't it break the RESTful…
user3482682
  • 441
  • 1
  • 6
  • 16
23
votes
3 answers

Are international characters (e.g. umlaut characters) valid in the local part of email addresses?

Are german umlauts (ä, ö, ü) and the sz-character (ß) valid in the local part of an email-address? For example take this email-address: björn.nußbaum@trouble.org RFC 5322 quite clearly says, that umlauts (and other international characters) aren't…
Jan Köhler
  • 5,817
  • 5
  • 26
  • 35
23
votes
4 answers

Regex for email address

Can someone show me a sample RegEx for an email address and how to use in in Objective-C? Looking for something that fits: name@place.something
Logan S.
  • 517
  • 1
  • 4
  • 15
21
votes
5 answers

PHP FILTER_VALIDATE_EMAIL does not work correctly

I'm using PHP 5.3.10. This is the code: It returns: "Email: test@example.c…
Rosario Russo
  • 680
  • 2
  • 8
  • 14
18
votes
4 answers

override jquery validate plugin email address validation

I find that jQuery validation plugin regex to be insufficient for my requirement. It accepts any email address xxx@hotmail.x as a valid email address whereas I want to be able to supply this regex…
neelmeg
  • 2,459
  • 6
  • 34
  • 46
1 2
3
82 83