lucerias Posted October 5, 2006 Share Posted October 5, 2006 I have set a value to the sendmail_from because i want to make use of mail function. But when i checked my info.php, it is still null value for sendmail_from. I have two php.ini which located at PHP folder and system32. I modfied both but still can't see the update on my info.php list. Thank you. Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 5, 2006 Author Share Posted October 5, 2006 I use PHP 4.3.9, below is part of email configuration[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = MYEMAIL@Email.com; For Unix only. You may supply arguments as well (default: "sendmail -t -i").;sendmail_path =Thank you. Quote Link to comment Share on other sites More sharing options...
Hi I Am Timbo Posted October 5, 2006 Share Posted October 5, 2006 unless the php folder is in your PATH, the php.ini in system32 is the only one that counts. Do you have sendmail installed on your windows box? It is not on there by default. A lot of people use SMTP to mail() from a windows box. http://us2.php.net/mail Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 5, 2006 Author Share Posted October 5, 2006 May i know how to on sendmail? Thank you. Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 6, 2006 Author Share Posted October 6, 2006 Now i can see the changes on list after i restarted apache but still encounter error shown as below. Thank you.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:\Apache Group\Apache2\htdocs\examples\code.php on line 58 Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 6, 2006 Author Share Posted October 6, 2006 If my SMTP is not hosted on local, how do i know the SMTP for the server which it is currently working on? Thank you. Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 10, 2006 Author Share Posted October 10, 2006 Sorry, anyone can help? How to config the .ini file if i host locally? Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 29, 2006 Author Share Posted October 29, 2006 Hi, Timbo, what do you mean by installing SMTP, i can't get it, what i want to do is to develop an email function and send it from my local device. Thank you so much. Quote Link to comment Share on other sites More sharing options...
php_in_use Posted October 29, 2006 Share Posted October 29, 2006 lucerias...I am having the same problem!If I find out how to do it I will post the solution here, will you do the same?I am also using localhostSte Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 30, 2006 Author Share Posted October 30, 2006 Ste, definitely i will do that. Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 30, 2006 Author Share Posted October 30, 2006 My php.ini looks like this:[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = me@localhost.comMay i know what other configuration is needed besides the above because until now i still can't send mail from local host? Thank you. Quote Link to comment Share on other sites More sharing options...
lucerias Posted October 30, 2006 Author Share Posted October 30, 2006 Is it possible to send a mail from my local device to recipient address through internet? If my device is under firewall protection, will the configuration be different from normal one? Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.