Jump to content

Archived

This topic is now archived and is closed to further replies.

lucerias

Sendmail_from in PHP.ini

Recommended Posts

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.

Share this post


Link to post
Share on other sites
I use PHP 4.3.9, below is part of email configuration

[mail function]
; For Win32 only.
SMTP = localhost
smtp_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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 localhost

Ste

Share this post


Link to post
Share on other sites
My php.ini looks like this:

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

; For Win32 only.
sendmail_from = me@localhost.com

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.