Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,969 members, 7,828,439 topics. Date: Wednesday, 15 May 2024 at 09:41 AM

Php Vs Apache - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Php Vs Apache (866 Views)

Does Anyone Here Have Apache Perl Knowledge? / Php Vs Asp: Which One Is Better? / How Do I Use An Apache Server On Dreamweaver? (2) (3) (4)

(1) (Reply) (Go Down)

Php Vs Apache by neeyee(m): 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)

How Can We Activate Call Monitoring. / Somebody Help Me, I Want To Learn Programming And App Development / Call XML File With HTTP GET How?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.