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
Post a Comment