|
Posted by Anirudh Dutt on 03/08/05 09:12
On Tue, 8 Mar 2005 10:28:32 +0530, Zareef Ahmed <zareef.ahmed@gmail.com> wrote:
> On Mon, 7 Mar 2005 10:02:32 +0530, anirudh dutt <aneroid@gmail.com> wrote:
> > On Mon, 7 Mar 2005 08:37:52 +0530, Zareef Ahmed <zareef.ahmed@gmail.com> wrote:
> > > Again you are sending the mail to same person very time.
> >
> > no, that part is correct.
>
> Dear Anirudh,
> Yes syntax is correct but receipent field is looking for the value in
> $_POST and programe is intended to send the emails to users in the
> database.
u're right. i didn't c that he used mail ($_POST['sendto'],... and not
mail ($sendto,...
(i was more concerned with the syntax/value errors)
> > while ($row = mysql_fetch_array ($result, MYSQL_NUM)) {
> > ...
> > mail ($_POST['sendto'],'Testing', $body, $headers);
> > echo "Sent to $row[1]<br>";} // <--*
> $row['1'] is correct but it was not used as the reciepent.
yup.
@Robert: i know u've fixed the problem but...
On Sun, 6 Mar 2005 23:00:55 -0500, Robert <sigler@cox.net> wrote:
> Thanks, I fixed the problem and it's working great. Didn't need the $_POST
> in the email and needed double quotes around the sender header variable.
u did have double quotes around ur headers.
"sender header variable" == the ( $headers .= "From: "; ) line ? any
program (not logic) changes other than that?
--
]#
Anirudh Dutt
....pilot of the storm who leaves no trace
like thoughts inside a dream
[Back to original message]
|