Page 1 of 1

send email from my window xp laptop: configure php question

PostPosted: 17. August 2010 01:25
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: configure php question

PostPosted: 17. August 2010 02:14
by JonB

Re: send email from my window xp laptop: configure php question

PostPosted: 17. August 2010 03:44
by frensap
Hmm, i do not think i understand. I have done the changes but no effect at all.

I am still getting the warning.

I wonder if i need to be specific based on what i want it to do.

I believe i didn't set the mail function correctly.

I created a email form and a script to try to test-sent an email in my laptop.

It will run the script and i will received it in my gmail.

I am a beginner so i am not sure if i am doing things correctly or based no the thread that you show me, i do not know if i am doing it correctly.