php-windows Digest 11 Mar 2004 11:31:50 -0000 Issue 2159

Topics (messages 23098 through 23103):

More Then one email
        23098 by: Will
        23099 by: Justin Patrin
        23101 by: BrokenClock
        23102 by: yhvh

Re: Paging using PHP and sql server
        23100 by: Firman Wandayandi

Re: Apache 1.3.29 crashes with PHP-extensions added
        23103 by: PHPDiscuss - PHP Newsgroups and mailing lists

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I have a problem.  When I put 2 email addresses together it does not
send the email.  The coding is like this:

$recipient = "[EMAIL PROTECTED], $_POST[email]";

The send form looks like this:
<?
$subject = "$_POST[subject]";

$recipient = "[EMAIL PROTECTED], $_POST[email";

$mailheader .= "From:       $_POST[email]\n";
$mailheader .= "To:         $_POST[email]\n";
$msg .= "A message has been sent from the domain.com\n\n";
$msg .= "Senders Name:       $_POST[name]\n";
$msg .= "Senders Email:     $_POST[email]\n\n";
$msg .= "Message:           \r$_POST[message]\n";

mail($recipient,$subject,$msg,$mailheader);
?>

Everything works, the subject message etc.  But when it is sent I do not
get any emails at all!!

Please help. :)

~WILL~

--- End Message ---
--- Begin Message --- Will wrote:

I have a problem.  When I put 2 email addresses together it does not
send the email.  The coding is like this:

$recipient = "[EMAIL PROTECTED], $_POST[email]";

The send form looks like this:
<?
$subject = "$_POST[subject]";

$recipient = "[EMAIL PROTECTED], $_POST[email";

$mailheader .= "From:       $_POST[email]\n";
$mailheader .= "To:         $_POST[email]\n";
$msg .= "A message has been sent from the domain.com\n\n";
$msg .= "Senders Name:       $_POST[name]\n";
$msg .= "Senders Email:     $_POST[email]\n\n";
$msg .= "Message:           \r$_POST[message]\n";

mail($recipient,$subject,$msg,$mailheader);
?>

Everything works, the subject message etc.  But when it is sent I do not
get any emails at all!!

Please help. :)

~WILL~

Use two mail() calls instead.


mail('[EMAIL PROTECTED]', $subject, $msg, $mailheader);
mail($_POST['email'], $subject, $msg, $mailheader);

--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
If your code is exactly what you wrote, this line:
        $recipient = "[EMAIL PROTECTED], $_POST[email";
should be:
        $recipient = "[EMAIL PROTECTED], $_POST[email]";
Is it that?


> -----Message d'origine-----
> De : Will [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 11 mars 2004 01:33
> À : PHP King; Php-Windows
> Objet : [PHP-WIN] More Then one email
> 
> 
> I have a problem.  When I put 2 email addresses together it does not
> send the email.  The coding is like this:
> 
> $recipient = "[EMAIL PROTECTED], $_POST[email]";
> 
> The send form looks like this:
> <?
> $subject = "$_POST[subject]";
> 
> $recipient = "[EMAIL PROTECTED], $_POST[email";
> 
> $mailheader .= "From:       $_POST[email]\n";
> $mailheader .= "To:         $_POST[email]\n";
> $msg .= "A message has been sent from the domain.com\n\n";
> $msg .= "Senders Name:       $_POST[name]\n";
> $msg .= "Senders Email:     $_POST[email]\n\n";
> $msg .= "Message:           \r$_POST[message]\n";
> 
> mail($recipient,$subject,$msg,$mailheader);
> ?>
> 
> Everything works, the subject message etc.  But when it is sent I do not
> get any emails at all!!
> 
> Please help. :)
> 
> ~WILL~
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message --- goodday~

how about this:

$recipient = array('[EMAIL PROTECTED]', $_POST[email]);
.
.
.
and then
mail(join(", ", $recipient),$subject,$msg,$mailheader);

it works well on my server~:)


Frederick Kuo 3/11


BrokenClock:

If your code is exactly what you wrote, this line:
        $recipient = "[EMAIL PROTECTED], $_POST[email";
should be:
        $recipient = "[EMAIL PROTECTED], $_POST[email]";
Is it that?



-----Message d'origine-----
De : Will [mailto:[EMAIL PROTECTED]
Envoyï : jeudi 11 mars 2004 01:33
ï : PHP King; Php-Windows
Objet : [PHP-WIN] More Then one email


I have a problem. When I put 2 email addresses together it does not send the email. The coding is like this:

$recipient = "[EMAIL PROTECTED], $_POST[email]";

The send form looks like this:
<?
$subject = "$_POST[subject]";

$recipient = "[EMAIL PROTECTED], $_POST[email";

$mailheader .= "From:       $_POST[email]\n";
$mailheader .= "To:         $_POST[email]\n";
$msg .= "A message has been sent from the domain.com\n\n";
$msg .= "Senders Name:       $_POST[name]\n";
$msg .= "Senders Email:     $_POST[email]\n\n";
$msg .= "Message:           \r$_POST[message]\n";

mail($recipient,$subject,$msg,$mailheader);
?>

Everything works, the subject message etc.  But when it is sent I do not
get any emails at all!!

Please help. :)

~WILL~

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





--- End Message ---
--- Begin Message ---
Hi Harpeet,

Try using PEAR::Pager http://pear.php.net/package/Pager

Regards,
    Firman

----- Original Message -----
From: "Harpreet" <[EMAIL PROTECTED]>
To: "[PHP-WIN]" <[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 11:25 PM
Subject: [PHP-WIN] Paging using PHP and sql server


> I have created a few reports using sql server and PHP. The reports work
just
> fine except that we have like 19000 records per report. I would like to do
> some paging within the reports 1 | 2 | 3 | 4 so that a user can view may
be
> 1000 records per page and can navigate to other pages if needed.
>
> Help is appreciated
>
> Thanks
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hello,

> There is some message in the bug list.
> Now it should be ok with the last snaps.

> Thx to the team for the patch.

Pls, could you provide references to the mentioned bug list and patch,
since I can't figure out where to pick them. 

THX in advance

Eric

--- End Message ---

Reply via email to