PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
SendMail Problem Posted by Archer282 on 21 Jul 2003 at 3:58 PM
i have configured PHP 4.3.1, MySQL 3.23.49, and Apache on my home pc
when i try to use the mail() function on it, it gives me this 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()...


i know there is nothing wrong with the code, is it just not possible to send mail from my server? or could something not be set up right?
Report
Re: SendMail Problem Posted by Jonathan on 21 Jul 2003 at 4:28 PM
: i have configured PHP 4.3.1, MySQL 3.23.49, and Apache on my home pc
: when i try to use the mail() function on it, it gives me this 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()...
: 

:
: i know there is nothing wrong with the code, is it just not possible
: to send mail from my server? or could something not be set up right?

You say you're running it on your home PC, and my guess is that you are not running an SMTP server on your home PC. Thus why it can't connect to it. You could either install an SMTP server or, more simply (and sensibly), put in php.ini the address and details of your ISP's SMTP server.

If you do run an SMTP server on your home PC, please make sure relay is turned off and you keep up on security patches for it, so you don't become a distributor of SPAM for some dodgy organisation (or individual) selling products that claim to give you a bigger...anyways...good luck.

Hope this helps,

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Report
Re: SendMail Problem Posted by Archer282 on 21 Jul 2003 at 5:07 PM
: : i have configured PHP 4.3.1, MySQL 3.23.49, and Apache on my home pc
: : when i try to use the mail() function on it, it gives me this 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()...
: : 

: :
: : i know there is nothing wrong with the code, is it just not possible
: : to send mail from my server? or could something not be set up right?
:
: You say you're running it on your home PC, and my guess is that you are not running an SMTP server on your home PC. Thus why it can't connect to it. You could either install an SMTP server or, more simply (and sensibly), put in php.ini the address and details of your ISP's SMTP server.
:
: If you do run an SMTP server on your home PC, please make sure relay is turned off and you keep up on security patches for it, so you don't become a distributor of SPAM for some dodgy organisation (or individual) selling products that claim to give you a bigger...anyways...good luck.
:
: Hope this helps,
:
: Jonathan
:
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
:
:
ok i thought something like could be the problem.
i use MSN dial-up so how could i find the the address and details or where could i download an SMTP server?

Report
Re: SendMail Problem Posted by Archer282 on 21 Jul 2003 at 6:41 PM
: : : i have configured PHP 4.3.1, MySQL 3.23.49, and Apache on my home pc
: : : when i try to use the mail() function on it, it gives me this 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()...
: : : 

: : :
: : : i know there is nothing wrong with the code, is it just not possible
: : : to send mail from my server? or could something not be set up right?
: :
: : You say you're running it on your home PC, and my guess is that you are not running an SMTP server on your home PC. Thus why it can't connect to it. You could either install an SMTP server or, more simply (and sensibly), put in php.ini the address and details of your ISP's SMTP server.
: :
: : If you do run an SMTP server on your home PC, please make sure relay is turned off and you keep up on security patches for it, so you don't become a distributor of SPAM for some dodgy organisation (or individual) selling products that claim to give you a bigger...anyways...good luck.
: :
: : Hope this helps,
: :
: : Jonathan
: :
: : ###
: : for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: : (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: : /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
: :
: :
: ok i thought something like could be the problem.
: i use MSN dial-up so how could i find the the address and details or where could i download an SMTP server?
:
:
i found the address to the MSN SMTP server and i set it and the port using the ini_set(); and now its giving me this error


Warning: mail() [function.mail]: SMTP server response: 450 5.7.3
 Requested action aborted; mailbox unavailable in...


did i miss something here, does msn not allow it
Report
Re: SendMail Problem Posted by Jonathan on 22 Jul 2003 at 10:09 AM
: : ok i thought something like could be the problem.
: : i use MSN dial-up so how could i find the the address and details
: : or where could i download an SMTP server?
: :
: :
: i found the address to the MSN SMTP server and i set it and the port
: using the ini_set(); and now its giving me this error
:
:
:
: Warning: mail() [function.mail]: SMTP server response: 450 5.7.3
:  Requested action aborted; mailbox unavailable in...
: 

:
: did i miss something here, does msn not allow it
Maybe MSN doesn't allow it, after all, it's MSN. It may be you need to specify outgoing mail authentication settings in your php.ini file (a username and password for the SMTP server). How you do that, I wouldn't know; consult the docs. Or you may just have spaces to pop them into already in php.ini, I don't know. Have you got access to any other SMTP servers you can try it on?

Jonathan

###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.