Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\golegalsource\lSOscar\lsoscar.php on line 163

I created a flash form on my website and am trying to link the output of the form to the coordinator of the project and a copy of the form back to the originator. However, I am unable to generate the required  mail functions to
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Muhammad WasifCommented:
Use this sample code to test email fuction in lsoscar.php or simply pass the From: as explained in the example below

$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@yourdomain.com' . "\r\n" .
   'Reply-To: webmaster@yourdomain.com';

mail($to, $subject, $message, $headers);

For more info on mail() function check http://www.php.net/manual/en/function.mail.php
Muhammad WasifCommented:
check your php.ini for "sendmail_from" and see which email is there, if there is no email, mention one like below
and if there is ; before sendmail_from remove the ; (semicolon)

; For Win32 only.
sendmail_from = me@example.com

You can use PHPMailer to send mail via SMTP
wmtocciAuthor Commented:
Problem is.. I have already set the SMTP function and Send_from/Send_path statements in the php.ini file. When I run lsoscar.php?debug=info, the Send_From & Send_path Local & Master Values show no value.
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

What servers are you running wmtocci?  IIS/Apache?
wmtocciAuthor Commented:
Webserver = Apache
MailServer = hMailServer
PHP Ver = 4.3.7
i'm not familiar with hmailserver, does it have an option for setting mail relay?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wmtocciAuthor Commented:
BTW: I tried to configure phpmailer to no avail. Guess my brain is just too fried.
wmtocciAuthor Commented:
I have set the SMTP to relay mail for anyone
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.