Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

PHP


  • Please log in to reply
2 replies to this topic

#1 TheNoodPope

TheNoodPope

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Local time:08:51 AM

Posted 02 April 2005 - 04:01 PM

I have an apache server on my computer with PHP 5 installed and MYSQL, but the MYSQL part doesn't matter, since i'm trying to work on developing my new project, and after registration i use the mail() function to send an email confirmation message. The problem is, i always get this error:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\Apache Group\Apache2\htdocs\proc_reg.php on line 113

I didn't set "sendmail_from" so it should be null by default, but this is what my line 113 looks like:
$from = 'From:Registration@GoFanboy.com';
mail($email, $subj, $body, $from);
$email is set properly and so is $subj, i've already checked those. but now i don't see why it won't accept my From header...

BC AdBot (Login to Remove)

 


#2 DeCipher

DeCipher

  • Members
  • 21 posts
  • OFFLINE
  •  
  • Local time:08:51 AM

Posted 02 April 2005 - 10:32 PM

Try this:

http://www.wampserver.com/phorum/read.php?f=2&i=891&t=891

Keith
Posted Image

#3 TheNoodPope

TheNoodPope
  • Topic Starter

  • Members
  • 27 posts
  • OFFLINE
  •  
  • Local time:08:51 AM

Posted 02 April 2005 - 11:38 PM

thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users