Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 SMTP error
Google
Post new topic Reply to topic
Author Message
comingbackdown
 
 


Joined: 05 Mar 2007
Posts: 3
Location: Ohio, U.S.

PostPosted: Tue Jul 24, 2007 2:54 am Reply with quoteBack to top

Note: I need to have this running by tomorrow evening. Current date and time: July 23, 10:56 P.M.

I'm using a Dell Inspiron 2200 Laptop as my testing server, seeing as that's what I'm writing my code on at the moment. I just migrated to the laptop and installed A2T. I went to test a perfectly written formmail script that works on my desktop computer, and found this in the error log.

Quote:

Php 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:\apache2triad\htdocs\trillum\htfiles\formmail.php line 48

Php 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:\apache2triad\htdocs\trillum\htfiles\formmail.php line


Those are the messages that I got. I used another formmail script that was almost identical, also worked perfectly on the desktop. Same error messages. Crying or Very sad

What's wrong, and how do I fix it???

Any help is much appreciated.
View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
dale
 
 


Joined: 11 Jun 2006
Posts: 51
Location: las vegas, nv

PostPosted: Tue Jul 24, 2007 4:12 am Reply with quoteBack to top

Find your php.ini file and see if you have this.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

The ; is the identifier for commenting out the line, so if you have something like this

;smtp_port = 25

Then take the ; out of the beginning of the line. Check and see if you don't have something like this going on.
View user's profileSend private message
comingbackdown
 
 


Joined: 05 Mar 2007
Posts: 3
Location: Ohio, U.S.

PostPosted: Tue Jul 24, 2007 9:47 am Reply with quoteBack to top

dale wrote:
Find your php.ini file and see if you have this.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

The ; is the identifier for commenting out the line, so if you have something like this

;smtp_port = 25

Then take the ; out of the beginning of the line. Check and see if you don't have something like this going on.


I checked php.ini, and the smtp_port line did not have a ";" in front of it.

Any more suggestions?

It is possible, is it not, that port 25 is in use by another process?

How do I tell if a port is being used by another program/service on the machine? If that's the problem, then how do I change it to another port???

If I'm going to have my testing done on time, I need this problem fixed by tonight.

EDIT:

the testmail cgi program will send mail, but my script won't...
I'm completely and totally lost...
View user's profileSend private messageAIM AddressYahoo MessengerMSN Messenger
hero2005
 
 


Joined: 11 Aug 2008
Posts: 1

PostPosted: Mon Aug 11, 2008 8:54 am Reply with quoteBack to top

put these statements at the top of your script

ini_set( sendmail_from, "your@email.com" );
ini_set( SMTP, "mail.yours.com" );
ini_set( smtp_port, 25 );

don't forget to change your@email.com to your email

and mail.yours.com to your mail server

regards

Very Happy
View user's profileSend private message
alexx_2010
 
 


Joined: 18 Nov 2009
Posts: 1

PostPosted: Fri Nov 20, 2009 6:59 am Reply with quoteBack to top

Checked php.ini and make sure that smtp_port have a ";" in front of it.

Structural Engineering Services
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT