Page 1 of 1
Mail() function problem?
Posted: Thu Aug 11, 2005 10:01 am
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);
?>
----------------------------
Posted: Thu Aug 11, 2005 10:04 am
by feyd
- 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]
Posted: Thu Aug 11, 2005 10:08 am
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.