View Single Post
  #2  
Old 03-23-2006, 07:33 AM
nraum
Unregistered

Posts: n/a

Hey, this is a really tough one to find support online for, but I finally found a solution when I had this problem...my guess is that you're running php on windows from some sort of auto php/mysql/apache installation package.

In your php code for the mailer, you need to use the following code somewhere:

PHP Code:
ini_set("SMTP","smtp.yourdomain.com");
ini_set("sendmail_from","info@boardwalkfsu.net"); 
I would put it right above the mail code beginning with:
PHP Code:
//Headers        
//Headers 
$headers="From: ".$yourname." <".$youremail.">\n";
$headers.="Reply-To: ".$yourname." <".$youremail.">\n";
$headers.="MIME-Version: 1.0\n"
From what I understand, this sets the mail server in your PHP.INI configuration file temporarily. For some reason I'm not sure of, the default "localhost" wouldn't work. Give it a try, let me know how it works out for you. If anyone else has anything to add, please post!

-Narayan
Reply With Quote