Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-23-2006, 04:41 PM
isis
Unregistered

Posts: n/a

help with warning

I keep getting this warning...

any idea what it means?

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\domains\serenitydesigns.ca\wwwroot\feedback.php on line 355
An error has occured, please report this to the website administrator.

thanks a bunch!!!
Reply With Quote
  #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
  #3  
Old 03-23-2006, 02:59 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

I had alot of problems with setting up a 3rd party smtp server with windows. It's very difficult to find support for it also.. what my problem ended up being was my mail server didn't want to accept mail from the IP it was coming from without logging on first. In your SMTP server, if you have relay settings set to off, make sure you set it to ignore your server IP addresses and do not requre auth from your SERVER IP's
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning Stephen General Chat 7 05-15-2005 03:41 PM
Warning NightWalker General Chat 6 12-23-2004 02:19 PM
!!!warning!!! mbryan456 General Chat 17 06-06-2004 02:33 AM
WARNING TO ALL S1EY*58th* Delta Force 2 09-26-2003 10:08 AM
WARNING!!!!! ~¥§~ LøÑ£wØLƒ²³ General Chat 9 12-16-2001 06:08 PM


All times are GMT -5. The time now is 10:18 PM.




Powered by vBulletin®