Re: Problem sending mail

From: Date: Mon, 30 Aug 2004 21:52:48 +0000
Subject: Re: Problem sending mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195213@lists.php.net to get a copy of this message
On Tuesday 31 August 2004 05:02, Zoran Lorkovic wrote: > $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); > mail ("myemail@domain.com", "My Subject", $data); > > > This code works when I call it from browser, but when I call it from > command line, $data is not put into mail (mail is send but it is empty, > without any data in body). > > File text.inc looks like this: > [start]some_text_goes_here[/end] > [other_start]other_text_goes_here[/other_end] 0) Enable full error reporting 1) Stop repeating yourself 2) I think we've ascertained from your previous post that mail() is working 3) Are you saying that $data contains what you expected but when plugged into mail() it becomes empty? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* An idle mind is worth two in the bush. */

« previous php.general (#195213) next »