You are here: sending mail « PHP Language « IT news, forums, messages
sending mail

Posted by Kevin Raleigh on 05/27/07 00:46

I am just starting out and working with a tutorial on php mail
I used this to send mail but didn't receive anything in my mail
Sould I be looking to setup something in PHP 5.0 to fix this problem?

<?php
$file_loc = "mydata.txt";
$whattoread = fopen($file_loc, "r");

$file_contents = fread($whattoread, filesize($file_loc));
fclose($whattoread);

$mailheaders = "From: my web site <> ";
mail("kraleigh@sbcglobal.net", "File contents", $file_contents,
$mailheaders);
echo ("check your mail");


?>

insight always appreciated
Thank You
Kevin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация