₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,095 members, 8,420,310 topics. Date: Thursday, 04 June 2026 at 04:07 PM

Toggle theme

Php Vs Apache - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingPhp Vs Apache (956 Views)

1 Reply (Go Down)

Php Vs Apache by neeyee(op): 7:45am On Jan 15, 2010
Felow NL, just started reading about PhP, I'm using windowsXp and linking the php to Apache seems difficult for me. Cheerfully come to my rescue.
Re: Php Vs Apache by yawatide(f): 11:07am On Jan 15, 2010
Re: Php Vs Apache by alexis(m): 11:12am On Jan 18, 2010
Re: Php Vs Apache by okabose: 2:53pm On Jan 21, 2010
I have been using the 'below' script to send mail from almost all my websites. And it's working fine.

But this script does not work in all the websites in RAPHSOFTHOST.COM reseller package. It can only send to the host website. It cannot send to the sender like a yahoo email address or another email address that is not from the host website.

Can anybody help?

The script

<?php
session_start();
$msg = "Below is an email from your website\n\n";
$msg .= "NAME: $_POST[name]\n\n";
$msg .= "EMAIL: $_POST[email]\n";
$msg .= "PHONE: $_POST[phone]\n";
$msg .= "NATIONALITY: $_POST[nationality]\n";
$msg .= "MESSAGE: $_POST[msg_body]\n";
$email = $_POST[email];
//set up the mail
$subject = "mail from our Website";
$recipient = "info@wholisticoutreachonline.org";
$mailheaders = "From: $name $email";
//send the mail
mail($recipient, $subject, $msg, $mailheaders, $email);
// send mail to the sender

$msg2 = "Hello $_POST[name], your mail has been received.\n ";
$msg2 .= "We are really glad that you mailed us and we will give you a reply soonest.\n\n";
$msg2 .= "You can visit our website any time.\n\n";

$msg2 .= "Thanks\n";


$email2 = $_POST["email"];
//set up the mail
$sender2 = "info@wholisticoutreachonline.org";
$subject2 = "Confirmation Mail From Wholistic Outreach.";
$recipient2 = "$email2";
$mailheaders2 = "From: $sender2";
//send the mail
mail($recipient2, $subject2, $msg2, $mailheaders2, $sender2);

$_SESSION["name"] = $_POST["name"];
$_SESSION["msg"] = "Hello ". $_SESSION["name"] . ", Your mail has been received and a confirmation mail sent to you.<br><br>
Thank you for contactiing us.";
function navigate($page) {echo "<script language='javascript'>location='$page';</script>";exit;}
navigate("send_mail_page.php"wink;
?>
1 Reply

Does Anyone Here Have Apache Perl Knowledge?Php Vs Asp: Which One Is Better?How Do I Use An Apache Server On Dreamweaver?234

Lagos Google Technology User Group CreatedPhp Function For Usain BoltHTML And Jsp