Write a function to validate email address
- Status: Closed
- Hadiah: $10
- Penyertaan Diterima: 1
- Pemenang: ActazenCorp
Ringkasan Peraduan
Hello,
I am looking for a function to validate email address in following ways
a) It should check syntactically a valid email address.
b) Validate the domain is a valid one and can receive emails for that domain.
c) Validate the email address exists.
This should be done using SMTP gateway access which require username and password to access the gateway.
It should generate error codes as follows:
wrong_email_address - Which represent syntactically wrong email addresses
wrong_domain. - Which denotes the wrong domain
invalid_address -Email address doesn't exist.
All codes should be properly and thoroughly commented.
This is to be done in PHP. The email address and message should be inserted into a table in mysql DB
Table emails (
email_id varchar(255),
msg varchar(255)
);
Before inserting the email address into the table, check if it is already in the table. If yes, just update latest message. Otherwise insert the new record.
And,, AHAH.... No existing or already available general functions please...
Happy coding.....
Kemahiran Disyorkan
Maklum Balas Majikan
“Made the function as needed. Good work.”
vknrvk, India.
Papan Penjelasan Umum
Bagaimana untuk mulakan dengan peraduan
-
Siarkan Peraduan Anda Cepat dan mudah
-
Dapatkan Bertan-tan Penyertaan Dari serata dunia
-
Anugerahkan penyertaan terbaik Muat turun fail - Mudah!