sherifmayika
Oct 29 2006, 12:38 PM
| | While testing an an autoresponder script I am geting am eoor message like this.
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\xampp\htdocs\responder\do_signup1.php on line 23
any kind of help would be apreciatedthanks
sherif |
Comment/Reply (w/o sign-up)
Pyro624
Oct 29 2006, 04:15 PM
Your mail() function is probably turned off. As for how to fix it, I have no clue. Sorry
Comment/Reply (w/o sign-up)
yordan
Oct 29 2006, 11:30 PM
QUOTE(Pyro624 @ Oct 29 2006, 06:15 PM)  Your mail() function is probably turned off. As for how to fix it, I have no clue. Sorry  Have a look in cpanel, in order to see if your smtp things are all configured and seem ok.
Comment/Reply (w/o sign-up)
Pyro624
Oct 30 2006, 01:21 AM
I suppose this is directly on your computer, right? Not a remotely controlled server/web host? If this is on a web host then they may have disabled the mail() function for security or something. I really can't get you past there.
Comment/Reply (w/o sign-up)
TavoxPeru
Oct 30 2006, 02:21 AM
I assume that you are running your own webserver locally right???? well, this problem is because in windows you dont have a mail server installed by default -well not on the non server versions- you use a smtp server to send your mails like the one that comes with the IIS package, so, if i'm correct you have 2 options: - Install and configure the SMTP server of the IIS package.
- Download, install, configure and run one free mail server like ARGOSOFT, download here.
A few months ago, i try this last one, its very easy to install and configure also very simple to administer, and even it works with Dynamic DNS, so if you have a broandband connection at home you can use it as your mail server too. Best regards,
Comment/Reply (w/o sign-up)
vizskywalker
Nov 11 2006, 11:30 PM
The issue does indeed to be that of the lack of SMTP on Windows. (As evidenced by the issue of the D:\ drive, which is a Windows designator). Once you install an SMTP program on windows, you must also tell PHP what ports it uses and the like. This is why the error mentions the php.ini file. Both the SMTP variable and the sendmail_from variables should be set, although PHP will probably work with mail() once you have installed the SMTP program without adjustment. The adjustments simply make sure the proper from address and server address are associated with mailings. ~Viz
Comment/Reply (w/o sign-up)
nightfox
Nov 13 2006, 03:54 AM
It appears you have no SMTP server installed. That's probably why it is error-ing out... no server to send the mail, it freaks! Just try to find a free SMTP server and that should solve your problems.  [N]F
Comment/Reply (w/o sign-up)
masterio
Nov 13 2006, 12:09 PM
Your problem seems happen to me. But it was about 2 years ago when i start to learn PHP. When i saw this error message: QUOTE 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 I:/Apache2/htdocs/project/testmail.php on line 5
I think that error happens because i didnt connect to internet. But I was wrong, this error message is appears because we haven't install a SMTP server on our computer. If someone on you using linux, you may never seen this error because linux has built-in SMTP server like sendmail or postfix. If you are using MS Windows, i highly suggest to use hMailServer as your SMTP server. It small, powerfull, easy to use and open source!. hMailServer can handle most email server like SMTP, IMAP, and POP3. For saving and storing data hMailServer bundled with MySQL server. But if have already install MySQL you can configure it when instalation. You can also use MS SQL server as database server. After installing hMailServer you can test it to check wheter it have configured well or not by using Outlook Express or other email client program. Hope's Help! 
Comment/Reply (w/o sign-up)
yordan
Nov 13 2006, 12:21 PM
QUOTE you may never seen this error because linux has built-in SMTP server like sendmail or postfix. Of course, Linux has these server, but nobody installs them. When I install a Linux workstation, I do not install the server rpms.
Comment/Reply (w/o sign-up)
TavoxPeru
Nov 15 2006, 06:17 AM
QUOTE(masterio @ Nov 13 2006, 07:09 AM)  Your problem seems happen to me. But it was about 2 years ago when i start to learn PHP. When i saw this error message: I think that error happens because i didnt connect to internet. But I was wrong, this error message is appears because we haven't install a SMTP server on our computer. If someone on you using linux, you may never seen this error because linux has built-in SMTP server like sendmail or postfix. If you are using MS Windows, i highly suggest to use hMailServer as your SMTP server. It small, powerfull, easy to use and open source!. hMailServer can handle most email server like SMTP, IMAP, and POP3. For saving and storing data hMailServer bundled with MySQL server. But if have already install MySQL you can configure it when instalation. You can also use MS SQL server as database server. After installing hMailServer you can test it to check wheter it have configured well or not by using Outlook Express or other email client program. Hope's Help!  First time i hear about this mail server, for a while i use the Argosoft Mail Server as i said in a previous post with good results, i search it to download and will test it to see how fine it works. Two things i like are that it is opensource  and second the fact that this mail server uses a database to store and saving data. Here you can find the hMailServer Best regards,
Comment/Reply (w/o sign-up)
LeafH
Apr 2 2007, 12:43 PM
You need to overview the php.ini and do_signup1.php as well, check out if sth wrg w/ the setting. From my exprenice, most people have problem with the setting in php.ini, like SMPT details, you may check your ISP info firstly.
Comment/Reply (w/o sign-up)
ok1
Dec 31 2006, 10:32 AM
You don't have mail server. You can install mail server. Or change it in php.ini like to mail.isp.com or smpt.isp.com .
Comment/Reply (w/o sign-up)
borlafu
Dec 14 2006, 08:49 PM
QUOTE(vhortex @ Nov 16 2006, 10:53 AM)  I have a perfect method on how to enable email sending without using any smtp.. though you need to add phpmailer into your software package.. or i can also give the direction directly.
I didn't know that phpmailer didn't need an SMTP server running... that's interesting  thanks for the info!!
Comment/Reply (w/o sign-up)
vhortex
Dec 14 2006, 08:42 PM
QUOTE(TavoxPeru @ Nov 17 2006, 09:59 AM)  You are right if done properly it will install properly but this doesnt means that it will work properly and based on my experience i really dont recommend this SMTP server because it is a bit difficult to admin and use it. Can you please show us or post an URL to view how you do it??? i think that it will be very helpful for many people.
Best regards,
i think i may need to write a tutotial about this.. the stuff you need are.. a locahost that can support ssl serving.. xampp will do or install mod_ssl on your local machine a working gmail account most important is an internet acount.. the method uses the same technique that outlook and other mailler programs do. i will post the link here after i finish the tutorial.. ********** this is not a perfect solution but good for testing emails.. you also need to play around with your apache and php.ini configurations.. ********** EDIT you can send Private Message if you want me to send the solution to you or ask questions on bout the trick. till here, i can only write the tutorial every sunday.. im pretty occupied as of now..
Comment/Reply (w/o sign-up)
Jarvis
Dec 14 2006, 06:58 PM
QUOTE(yordan @ Oct 29 2006, 11:30 PM)  Have a look in cpanel, in order to see if your smtp things are all configured and seem ok.
as this person says if you have not checked your control panel then do so thats the first thing to check then if thats all fine im sorry i know no more on the matter
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : mail, sever, phpscript
- Mysql Script Help
help me lol, (3)
Script Tables On Sql Server Compact
(0) So I have an application that's using SQL Server Compact Edition 2005. I need to export the
table schema to a file of SQL statements, containing only the schema...no data, no rows, just the
tables, indexes, and constraints. Now, when using SQL 2000/2005 I just use the script table as...
feature to do exactly this, but because SQL server Compact Edition doesn't have the support for
it, I can't do this. The tables in SQL Server Compact *do* have the information_schema views
though, so I was wondering if anyone knows of any tools that can read these views and....
Can Someone Help Me Install A Script?
(2) Hi /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> , I need
some help installing a script. Actually I have a few that I'd like to install and play around
with. Unfortunately I have no clue what I'm doing. So, is there anyone here that would like to
answer my questions in msn or maybe even install the script(s) for me. If you're interested and
you know how to install cgi scripts, send me a message and let me know your fee. Thanks....
[help] Student DB Script In PHP & MySQL
(9) Since my earlier try with using access went wild .. i decided to choose MySQL as my DB and PHP as
the code .. so just changing a few things in my earlier post .. for the new people .. QUOTE ok
.. i have this little problem i am going through ... Leme explain this project of mine first . I
have a MySQL DB of student fields like ID no, Name, Marks .. etc .. This one MySQL DB would be
updated by just adding more rows and would be done on the server. Now .. I have a HTML page that
shows this : I would enter the ID number of a student (no authentication .. anyone c....
Looking for mail, sever, phpscript
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for mail, sever, phpscript
|
advertisement
|
|