send email from my window xp laptop: configure php question

Problems with the Windows version of XAMPP, questions, comments, and anything related.

send email from my window xp laptop: configure php question

Postby frensap » 17. August 2010 01:25

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.
frensap
 
Posts: 7
Joined: 20. July 2010 16:17

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

Postby JonB » 17. August 2010 02:14

User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby frensap » 17. August 2010 03:44

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.
frensap
 
Posts: 7
Joined: 20. July 2010 16:17


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 135 guests