Jump to content


Photo

Sendmail_from in PHP.ini


  • Please log in to reply
11 replies to this topic

#1 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 05 October 2006 - 06:59 AM

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.

#2 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 05 October 2006 - 08:04 AM

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.

#3 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 05 October 2006 - 08:06 AM

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

#4 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 05 October 2006 - 08:41 AM

May i know how to on sendmail? Thank you.

#5 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 06 October 2006 - 01:32 AM

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

#6 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 06 October 2006 - 02:30 AM

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.

#7 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 10 October 2006 - 12:55 AM

Sorry, anyone can help? How to config the .ini file if i host locally?

#8 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 29 October 2006 - 11:54 AM

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.

#9 php_in_use

php_in_use
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 29 October 2006 - 02:10 PM

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

#10 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 30 October 2006 - 12:52 AM

Ste, definitely i will do that.

#11 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 30 October 2006 - 01:32 AM

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.

#12 lucerias

lucerias
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 30 October 2006 - 06:26 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users