Write a function to validate email address
- Status: Closed
- Preis: $10
- Einträge eingereicht: 1
- Gewinner: ActazenCorp
Kurzbeschreibung des Wettbewerbs
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.....
Empfohlene Fähigkeiten
Feedback vom Arbeitgeber
“Made the function as needed. Good work.”
vknrvk, India.
Öffentliche Anschlagtafel
Einstieg in Wettbewerbe
-
Veröffentlichen Sie Ihren Wettbewerb Schnell und einfach
-
Erhalten Sie zahlreiche Einträge aus der ganzen Welt
-
Vergeben Sie die Prämie an den besten Eintrag Laden Sie die Dateien herunter - ganz einfach!