Page 1 of 1

send email from my window xp laptop

PostPosted: 16. August 2010 07:29
by frensap
Hi,

i am learning the mail function of the php. I know i need to do some configuration in the php.ini file for the mail to work in my laptop.

I intend to do a test mail and send it to my gmail. may i know what i should change, i check it out and i am confused on what to do, it seems like it is all being set up i am unable to do the mail sending.

It gives me this message:

Thank you John for your email.

Your email address is test@test.com

Your message is
this is a test

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\xampp\elearning\samteach2\forms\sendmail.php on line 23


This is in my php.ini file.

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost


My question is win32 does it mean winxp? and the sendmail_from, i have to change it to the email that is to be sent to, the word " From" is confusing.

Thanks for any help.

Re: send email from my window xp laptop

PostPosted: 17. August 2010 01:20
by frensap
oops.. i just realized that i posted in the wrong language forum.

moderater, pls delete this thread as i had posted similar thread in the english section already. thanks.