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. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/ 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 = [email protected]; For Unix only. You may supply arguments as well (default: "sendmail -t -i").;sendmail_path =Thank you. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-104200 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 Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-104201 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. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-104211 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 Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-104751 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. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-104772 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? Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-106574 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. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-116224 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 Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-116259 Share on other sites More sharing options...
lucerias Posted October 30, 2006 Author Share Posted October 30, 2006 Ste, definitely i will do that. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-116519 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 = [email protected]May i know what other configuration is needed besides the above because until now i still can't send mail from local host? Thank you. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-116525 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. Link to comment https://forums.phpfreaks.com/topic/23059-sendmail_from-in-phpini/#findComment-116589 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.