I want an email filter to redirect to Email Provider Page

the mail() function

Moderators: egami, macek, gesf

Post Reply
TheProdigyGuy
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

<?php
error_reporting('off');
$email='user@atnotexistdomain.com';

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

$useremail=filter_var($email,FILTER_VALIDATE_EMAIL);
if (isset($useremail) && !empty($useremail) && substr_count($useremail,'@')==1 && substr($useremail,0,1) !='@')
{
$position=strrpos($useremail,'@');
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));

}
else
{

die('Input is not valid!');
}

?>
But
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