₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,106 members, 8,420,362 topics. Date: Thursday, 04 June 2026 at 05:35 PM

Toggle theme

I Need Php Code To Open Email Domain After Client Submit Their Form - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingI Need Php Code To Open Email Domain After Client Submit Their Form (1200 Views)

1 Reply (Go Down)

I Need Php Code To Open Email Domain After Client Submit Their Form by Coinmamax(op): 3:49pm On Dec 27, 2022
Let's say, abc@gmail.com is the client's email.

After he register on my website with both email and password, he should be redirected to Gmail.com.

If it's abc@fmail.com

He should be redirected to fmail.com after submitting details.

Can anyone help with this?
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Nobody: 3:57pm On Dec 27, 2022
I can kindly send me a email

we.share@yahoo.com
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Coinmamax(op): 4:05pm On Dec 27, 2022
Caspertech:
I can kindly send me a email

we.share@yahoo.com
Do you have the php code ?
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Nobody: 4:15pm On Dec 27, 2022
Coinmamax:
Do you have the php code ?
Yes
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Coinmamax(op): 4:57pm On Dec 27, 2022
Caspertech:
Yes
just d code... A simple code not a script
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by etoluw: 5:28pm On Dec 27, 2022
very easy. just extract part after @ and use header to redirect them to the address
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Coinmamax(op): 6:42pm On Dec 27, 2022
etoluw:
very easy. just extract part after @ and use header to redirect them to the address
Can you please drop code. Or an explanation on how to do it.

Thank you
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by bedfordng(m): 7:24am On Dec 28, 2022
I am not a php Dev but I guess you can do something like this. Try and search for all the email extensions used by most of this email providers and use them in your if statements. Example

if (strpos($email, "gmail")){
redirect to gmail site

}elseif (strpos($email, "yahoo")){
redirect to yahoo site

}elseif(strpos($email, "hotmail")){
redirect to Hotmail site
}

So you can fine-tune it. you can use the switch case feature too if you wish.
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by etoluw: 8:30am On Dec 28, 2022
Coinmamax:
Can you please drop code. Or an explanation on how to do it.

Thank you
/* short version */
$mail = $_POST['email'];

$location = 'https://' . (explode('@', $mail))[1];

header("location: $location"wink;
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Coinmamax(op): 1:49pm On Dec 28, 2022
etoluw:
/* short version */
$mail = $_POST['email'];

$location = 'https://' . (explode('@', $mail))[1];

header("location: $location"wink;
Didn't work too
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by etoluw: 5:25pm On Dec 28, 2022
Coinmamax:
Didn't work too
what error is it showing?
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by QuoteJustOnce: 3:01am On Dec 29, 2022
This wants to be used for phishing. After the user would put their credentials (email + pass) in your clone (phishing page), they would be redirected to the original & legit email website (cos they were probably logged in before, thanks to cookies). A yahoo user would go to yahoomail, a gmail user would go to gmail. They would think all is fine, not knowing they came from a clone page.

Giveaway: if a user would register on your app; they should be redirected to either
1. confirmation page.. please check your email for verification, or
2. user dashboard

not to their email's website.

I "do not" stand corrected.
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by KidKonnekt: 2:08am On Dec 30, 2022
I remember when I was working with a "cyber security" company in Abuja last year. My Boss was actually a fraudster that made me build all sorts of advanced phishing scripts including the one similar to what this OP is trying to build.

Email spamming, either to upgrade your email, update your details, or verify something.

They still your login details and then redirect you to your inbox.

They could buy over 1,000,000 email list, get RDPs, and SMTPs to help them do the job neatly.

Heck! I even built a tool that separates the email list. Yahoo mails will be separated from Gmails, AOLs and the others. This was all in a bid to make sure that the right SMPTs were used so the emails always delivered 100% to the inbox.

God knows how many GoDaddy mails and Amazon accounts that guy used me to hack.

When I discovered, I waited till the end of the month, received my salary, tendered my resignation letter and disconnected him from contacting me.

Nigerians are using good skills to do bad things. Very bad.
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by SodiumValproate: 2:10am On Dec 30, 2022
KidKonnekt:
I remember when I was working with a "cyber security" company in Abuja last year. My Boss was actually a fraudster that made me build all sorts of advanced phishing scripts including the one similar to what this OP is trying to build.

Email spamming, either to upgrade your email, update your details, or verify something.

They still your login details and then redirect you to your inbox.

They could buy over 1,000,000 email list, get RDPs, and SMTPs to help them do the job neatly.

Heck! I even built a tool that separates the email list. Yahoo mails will be separated from Gmails, AOLs and the others. This was all in a bid to make sure that the right SMPTs were used so the emails always delivered 100% to the inbox.

God knows how many GoDaddy mails and Amazon accounts that guy used me to hack.

When I discovered, I waited till the end of the month, received my salary, tendered my resignation letter and disconnected him from contacting me.

Nigerians are using good skills to do bad things. Very bad.
So you can build phishlets for Evilgnix2. grin
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by SodiumValproate: 2:14am On Dec 30, 2022
bedfordng:
I am not a php Dev but I guess you can do something like this. Try and search for all the email extensions used by most of this email providers and use them in your if statements. Example

if (strpos($email, "gmail"wink){
redirect to gmail site

}elseif (strpos($email, "yahoo"wink){
redirect to yahoo site

}elseif(strpos($email, "hotmail"wink){
redirect to Hotmail site
}

So you can fine-tune it. you can use the switch case feature too if you wish.
Why not use a regex that takes the part after '@' and redirect?
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by SodiumValproate: 2:15am On Dec 30, 2022
etoluw:
/* short version */
$mail = $_POST['email'];

$location = 'https://' . (explode('@', $mail))[1];

header("location: $location"wink;
Nice
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Regex: 6:38am On Dec 30, 2022
SodiumValproate:
Why not use a regex that takes the part after '@' and redirect?
I don't do that. If I'm taking, I take the whole part. Not some.
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by Deicide: 7:29am On Dec 30, 2022
SodiumValproate:
Why not use a regex that takes the part after '@' and redirect?
regex is slow
Re: I Need Php Code To Open Email Domain After Client Submit Their Form by aolfasdj: 3:20am On Jan 02, 2024
SodiumValproate:
Get your free smtps and others here http://mixfreetools.free.nf/
1 Reply

I Need Php Script For My Ecommerce SiteI Need Php & Python Video TutorialsI Need PHP Tutorial Materials, Someone Should Please Help Me234

Ai BooksWhere Can I Can Learn Java And Oracle ProgrammingHelp: Are A Programer And Software Developer? Hop In