In my CGI scripts I validate u-mail so that I check for a dot "." and a "@". Like this:
unless ($email=~/\@/ && $email=~/\./) {
&error;
exit;
};
The problem is people can still enter a not-working e-mail (like this one: asfaasd@asdasf.com) but the script will not detect this.
Is there a way to ... hmmm ... "make" the MAIL PROGRAM check if this e-mail is actually working?
I'm using Sendmail and tried with some switches but allways get that lovely "500 Internal server error" message.
Here is a link to Sendmail switches (a very useful resource):
The -bt and -bv are used for e-mail validation but like said, I hadn't had any luck yet.
Can anyone help me out? Perhaps you have some other ideas or tricks for "advanced" e-mail validation?
A HUGE thanks in advance!
unless ($email=~/\@/ && $email=~/\./) {
&error;
exit;
};
The problem is people can still enter a not-working e-mail (like this one: asfaasd@asdasf.com) but the script will not detect this.
Is there a way to ... hmmm ... "make" the MAIL PROGRAM check if this e-mail is actually working?
I'm using Sendmail and tried with some switches but allways get that lovely "500 Internal server error" message.
Here is a link to Sendmail switches (a very useful resource):
The -bt and -bv are used for e-mail validation but like said, I hadn't had any luck yet.
Can anyone help me out? Perhaps you have some other ideas or tricks for "advanced" e-mail validation?
A HUGE thanks in advance!