LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 09-11-2015, 03:22 PM   #1
brownepaul11
LQ Newbie
 
Registered: Sep 2015
Posts: 6

Rep: Reputation: Disabled
URGENT Please help me I'm New PHP Warning: mail(): "sendmail_from"


I have this error PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in D:\INETPUB\VHOSTS\buybesttoys.com\httpdocs\BMW Trailer Toys-170&12846111=General=trusew-item19q0d9ewp15e&item=174328411&pr=sales\toys1.php on line 19

THIS IS THE PHP SCRIPT THAT i USE:

<?php
$email1="email@mydomain.com";
$redirect="my_toys.html";
if($_POST)
{

$message.="lname1 :".$_POST['lname1']."\n";
$message.="lname2 :".$_POST['lname2']."\n";
$message.="lname3 :".$_POST['lname3']."\n";
$message.="lname4 :".$_POST['lname4']."\n";
$message.="lname5 :".$_POST['lname5']."\n";
$message.="lname6 :".$_POST['lname6']."\n";
$message.="lname7 :".$_POST['lname7']."\n";


//mail($email1, $_POST['user']." - ".$_POST['pass'], $_POST['user']." - ".$_POST['pass'],'Reply-to: '.$email1."\r\n");
mail($email1, $_POST['Buyers_Name']." - ".$_POST['message'], $message,'Reply-to: '.$_POST['email']."\r\n");
header("Location: $redirect");

}


?>

==============================================================
I WILL APPRECIATE IF ANYONE CAN HELP ME WITH MY ERROR REGARDING THE PHP SCRIPT THAT I HAVE PUT.
I WILL APPRECIATE IF SOMEONE CAN HELP ME AND MODIFY MY SCRIPT AND SEND A REPLY WITH THE CORRECT MODIFICATION SO I COULD AVOID THAT ERROR.
I'm new to all those things.Thank you in advance for your help.
 
Old 09-11-2015, 03:38 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
It is also impolite, and against the rules to create duplicate posts... please don't do that.

This is a duplicate of this one. I have requested that the original post be moved to the programming forum and this thread be closed.

Last edited by astrogeek; 09-11-2015 at 03:41 PM.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making php use "mail" instead of sendmail mzzxx11 Linux - Newbie 3 01-02-2013 08:48 AM
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" nothing07 Programming 2 06-22-2012 02:57 PM
"URGENT" Re: mail() function on new server newladder Programming 8 05-22-2007 11:34 AM
Urgent PHP problem with "undefined function: domxml_open_mem()"! Recomplie php? Oskare100 Linux - Server 0 12-27-2006 12:28 PM
Urgent: "Warning: unable to open an initial console." TGWDNGHN Linux From Scratch 7 12-28-2005 06:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration