Mail() function problem?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
padh
Forum Newbie
Posts: 1
Joined: Thu Aug 11, 2005 9:52 am
Location: coimbatore

Mail() function problem?

Post by padh »

:(

Hi

I am new for PHP.

I am using simple mail() function in my page , but I m not receiving any mail from this page?


my code
-----------------------------
<?php
$email_to = "xxxx@xxxx.xxx";
$email_subject = "test subject";
$email_message = "test message";
$headers = "From: my web page";

mail($email_to, $email_subject, $email_message, $headers);

?>
----------------------------
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. you can (and should) put php code inside

    Code: Select all

    tags here, it'll colorize it, making it far easier for us to help.
    [*]make sure you are using a valid address in your From header, check the error logs to see if there are any additional things you aren't seeing on the page.[/list]
lisamarie_tt
Forum Commoner
Posts: 32
Joined: Fri Jul 15, 2005 8:20 am

Post by lisamarie_tt »

I'm also new to php but I used the formmail.php file and tweeked it a bit. It used the mail_it function to send the mail though.

Heres a link that resource:
http://www.dtheatre.com/scripts/source_ ... mmail.phps

I hope that it helps.
Post Reply