Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php mail sending problem

Status
Not open for further replies.

importmodifications4

Technical User
Mar 4, 2003
2
US
i am using mail("$email","subject: testing","message: testing");

it works when i send email to MYSELF, but to anyone else it doesnt send....or they dont get the email...whats going on??
 
thread434-490995

You will need to post more code. What are you using to mail?
BDC.
 
Hello,

Try this

<?
print &quot;<html><body>&quot;;
$recipient = &quot;$email&quot;;
$subject = &quot;Re: $subject&quot;;
$message = &quot;some message to the user&quot;;
$extra = &quot;From: youremail@yourdomain.com&quot;;
mail($recipient,$subject,$message,$extra);
print &quot;</body></html>&quot;;
?>

Hope this helps
KC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top