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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems in send emails

Status
Not open for further replies.

luistsousa

Technical User
May 12, 2003
66
PT
Hi

I try to send a email with a very simple code from a form, like :

$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "luistsousa@hotmail.com", "Feedback Form Results",
$message, "From: $email" );

but the email don't arrive to the destination.
My php.ini have the field SMTP=localhost.

Can anybody help me?

Thanks
Luis
 
Hi

I modify the code and put this:

<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

if (!isset($_REQUEST['email'])) {
header( &quot;Location: );
}
elseif (empty($email) || empty($message)) {
header( &quot;Location: );
}
else {
mail( &quot;luistsousa@lojadainformatica.com&quot;, &quot;Feedback Form Results&quot;,
$message, &quot;From: $email&quot; );
header( &quot;Location: );
}
?>

But continue to don't work. Misse something?

Regards
 
Unfortunately, I can't answer that. In a lot of cases it will vary from ISP to ISP.

Send yourself a successful mail to the hotmail account and if possible check what headers your mail client is setting. Then duplicate appropriate versions of those.



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top