I want an email filter to redirect to Email Provider Page

the mail() function

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 215
Joined: Wed Dec 07, 2011 5:25 pm

Wed Dec 14, 2011 1:49 pm

Hello SiAmStat.
If i understand correctly you are about:

Code: Select all


if (!filter_var($email,FILTER_VALIDATE_EMAIL)) die('You Mail Address is not correct!');

if (isset($useremail) && !empty($useremail) && substr_count($useremail,'@')==1 && substr($useremail,0,1) !='@')
echo 'Your mail Addr is: ' . str_repeat('*',$position) .substr($useremail,$position) . "<br>" .
' And Depending on your mail address you will be redirected to : ' . substr($useremail,$position+1,strlen($useremail));


die('Input is not valid!');

Or how can i forward email to URL inside my webpage , this could help me with another ideea i have, again this would have to be filtered @yahoo.com , @hotmail.com etc , to be forwarded to a local URL inside the site depending on what Email Provider they enter .
This will be suspic .In ex: It will look like to Phishing attack.

Post Reply