₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,134 members, 8,420,509 topics. Date: Thursday, 04 June 2026 at 10:49 PM

Toggle theme

Esoftcopies's Posts

Nairaland ForumEsoftcopies's ProfileEsoftcopies's Posts

1 (of 1 pages)

ProgrammingPhp Programmer by esoftcopies(op): 4:09pm On Apr 30, 2009
My Good people, am having a little problem on auto respond mail on my site. I design an online form which user register and subscribe for a product but I want the user id and password to be send to the User email from my site. Plz I need help urgently.
I was using this code and it only send to email at my extension such support@newlifeworld.com but I want it to be send to user with any email extension :
<?php
$to= $_POST['txtemail'] ;
$userpp = $_POST['userpass'];
$subject = "New Registration";
$email = "admin@newlifeworld.com";
$message = "You have successfully Registered";
$headers = "From:" .$email;
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Successfully Submitted"; }
else
{print "Eerror sending your mail"; }
?>

1 (of 1 pages)