473,654 Members | 3,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mail problem (mail server is running) but mail() is not working.

2 New Member
I have installed PHP , Apache on WinXP . I am using php mail function but i am getting error i also have installed Argosoft mail server and it is running properly using port 25 and php.ini is also configured properly. But i m getting error

Warning: mail() [function.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 D:\Program Files\Apache Group\Apache2\h tdocs\email.php on line 8

please tell me the reason.When page is loaded request goes to smptp server
here is the log produced by mail server when request goes to server.
SMTP server started. Listening on port 25
7/24/2006 3:48:57 PM - POP3 server started. Listening on port 110
7/24/2006 3:48:57 PM - IMAP server started. Listening on port 143
7/24/2006 3:48:57 PM - Web server started. Listening on port 80
7/24/2006 3:48:57 PM - Using normal message scheme, Size=5
7/24/2006 3:49:29 PM - { 1} START SMTP
7/24/2006 3:49:29 PM - Requested SMTP connection from 127.0.0.1 [127.0.0.1], ID=1
7/24/2006 3:49:29 PM - ( 1) Evaluation period has expired
7/24/2006 3:49:29 PM - SMTP connection with 127.0.0.1 [127.0.0.1] ended. ID=1
7/24/2006 3:49:30 PM - { 1} END SMTP
7/24/2006 3:50:15 PM - { 2} START Web
Please help me out i have visited a lot of forums but i did'nt find any solution for that.
I will thankul for this.
Jul 24 '06 #1
5 14229
sashi
1,754 Recognized Expert Top Contributor
Hi there,

open up your command prompt and type the following command to make sure you port 25 [smtp] is ready and listeing to incoming connection..

telnet localhost 25
Jul 25 '06 #2
ronverdonk
4,258 Recognized Expert Specialist
I recall having this problem myself once. Reason was that I had
SMTP=localhost left in php.ini. After I changed it to a real mail server, e.g. SMTP=mail.provi der.nl it ran.
Maybe this does not apply in your case, but ít is worth a try.

Ronald :cool:
Jul 25 '06 #3
bilal
2 New Member
i have run the command telnet localost 25 it gives the following result
501 Evaluation period has expired


Connection to host lost.

I am using cable net (LAN) how can ii ind my real server name????????
i have installed ARGOSOFT smtp server but wen it is started it gives thhe following messege i think problem is with this mail server. When it gets started it gives the ollowing messege
Mail server appaears to be started but incoming requests may not be accepted.
Jul 27 '06 #4
eeau1973
4 New Member
hi bilal ...
i was getting that error too ... after trying many options this works for me ...
in your c:\windows\php. ini go to this section:

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

; For Win32 only.
sendmail_from = writeheremiuser @myemailserver

uncomment that lines , save your php.ini, restart your http server and try again sending email using your form :D ...

greetings ...
Jul 28 '06 #5
jchemie
1 New Member
Well if the server is not yours then what you can do is try sending an smtp mail instead of using phpmail function. Search in google fpr further information.

Thanks

Jyot Vakharia
Aug 4 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3100
by: Bruce W...1 | last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They worked a few days ago but they stopped working. The only thing I've done to this Windows 2000 PC in this time was a Windows Update which I do regularly. The only part of this update that might be related was an IE 6 update. So I uninstalled and reinstaled PHP 4.3.3. The mail server setting is correct in the php.ini file. But email is still not being sent. ...
0
2018
by: Mark Molinari | last post by:
Hello, I have a Windows 2003 Enterprise server, acting as the primary domain controller, with 2 instances of SQL Server 2000, Active Directory, and Exchange 2003 running on it. Both sql server and sql server agent use the same domain startup account. I set up a mail profile for both sql server and sql server agent. I used this profile to configure SQL Mail and everything is working properly. However, when I try to configure the sql...
6
11175
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
8
5462
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
6
2523
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario, I'm having trouble writing to the server's event log. Here's some details: Server and workstation both in the same workgroup Logged into server as local Administrator Logged into workstation as a local user that is only in the Users group on
11
12308
by: Lieven | last post by:
Hey, I had a hard disc problem last week on my server. I replaced the disc and copied al the files to the new hard disc, everything works fine again except some php scripts that are using the mail() function. When executing these scripts I get this error: "500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
3
1853
by: Ibrahim. | last post by:
Hello, Im getting the following error when mail is sent from ASP.NET 2.0 website. CDO.Messaging componenet is used for sending mail. " The message was not able to be transmitted to the SMTP server. The forwarding error code is 0x800ccc67. The response from the server is as follows. 421 service not available, closing transmission channel
8
1996
by: Robert Dufour | last post by:
Dim message As New MailMessage("mymail@mydomain.com", "mymail@mydomain.com", "Test", "Test") Dim emailClient As New SmtpClient("localhost") emailClient.Send(message) The IIS server is running on the local machine. What am I missing to make this work reliably?
11
3496
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the programs capabilities. Searching this forum I did not find any related information so if I have chosen poorly, I would appreciate a suggestion of a more appropriate dotnet forum. Now what I wish is the ability to send bcc's rather than to: (would be...
0
8285
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8706
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7304
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5621
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1592
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.