This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes PHP and the fly likes Simple Mail In PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "Simple Mail In PHP" Watch "Simple Mail In PHP" New topic

Simple Mail In PHP

Arpit Gadle
Ranch Hand

Joined: Dec 16, 2008
Posts: 69

Dear All,
I am PHP newbie. I had installed XAMPP on my system and wants to send a test mail. I had done the following changes to php.ini

and here is the test mail php script

I am not getting any output from either of the if-else block

Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

I'm not really a PHP programmer, but hasn't got this line

to be
Beside that: your local mail-server is configured correctly? Are there any messages in your log-file? If you don't find your log-file, execute phpinfo(); and have a look at the values of "error_log", "display_errors" and "log_errors".

Hope that helps.
I agree. Here's the link:
subject: Simple Mail In PHP
Similar Threads
could servlet include the jsp,html files???
Problem with my jsp compilation/Java mail
the mails are goes to Badmail folder of the host
Email with jsp
sending mail through servlet using java mail api