Problem sending mail
| From: | Zoran Lorkovic | Date: | Mon, 30 Aug 2004 17:42:36 +0000 |
| Subject: | Problem sending mail | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-195173@lists.php.net to get a copy of this message | ||
Hi
$file = file_get_contents("text.inc");
$start = "[start]";
$end = "[/end]";
$pos_start = strpos ($file, $start);
$pos_end = strpos ($file, $end);
$data = substr ($file, $pos_start, $pos_end);
echo $data;
mail ("myemail@domain.com", "My Subject", $data);
Echo is working fine, but mail just send blank message with subject "My subject" but with
empty body message.
File text.inc looks like this:
[start]some_text_goes_here[/end]
[other_start]other_text_goes_here[/other_end]
Regards.