Re: Can't figure mail & post out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 8 Mar 2005 10:28:32 +0530, Zareef Ahmed <zareef.ahmed@xxxxxxxxx> wrote:
> On Mon, 7 Mar 2005 10:02:32 +0530, anirudh dutt <aneroid@xxxxxxxxx> wrote:
> > On Mon, 7 Mar 2005 08:37:52 +0530, Zareef Ahmed <zareef.ahmed@xxxxxxxxx> 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@xxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux