validate email with password in php -


i'm involved in product development, user register company. once becomes user of our product, need send announcements,newsletters etc. users on behalf company.

for purpose company email , password, need validate email valid , he's given correct password email id or not. i'am thinking 2 methods validate email , password,

  • send test mail smtp authetication
  • try open inbox.

i feel first 1 better later. because if user given wrong passwords, there chances considered attack.

any 1 can tell me there better way validate given email password.

answers appreciated, thanks!

just connect imap_open() , test if connection successful.

$resource = sprintf("{%s:%s/imap/ssl/novalidate-cert/notls/norsh}inbox","imap.host",993); $imap = imap_open($resource, "user", "password", op_readonly, 1); if($imap) echo "it works"; 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -