Okabose's Posts
Nairaland Forum › Okabose's Profile › Okabose's Posts
1 (of 1 pages)
They just installed the Pear package. And the SMTP worked. I will still try it again. Thank you my brother. God bless you |
The SMTP did not work. Think the PERL Package is not Installed. What do I do? |
-------------------------------------------------------------------------------- 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" ;?> |
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" ;?> |
1 (of 1 pages)
;