Re: php question

by "Mike Taylor" <lonewolf(at)one.net>

 Date:  Sun, 26 Jan 2003 17:52:33 -0500
 To:  "HWG Techniques" <hwg-techniques(at)mail.hwg.org>
 References:  earthlink laptop1 earthlink2
  todo: View Thread, Original
It's printing only the second line because you redefined your variable with
the second string instead of telling it to equal the first string ("testing
php mail.\r\n") PLUS the second string ("testing if it gets out and back
in.\n";

If you set $mail_body to equal BOTH lines, then it should work.

Mike

----- Original Message -----
From: "terry goode" <tgoode(at)earthlink.net>
To: "Paul Roberts" <hwg(at)roberts200025.freeserve.co.uk>; "HWG Techniques"
<hwg-techniques(at)mail.hwg.org>
Sent: Sunday, January 26, 2003 2:35 PM
Subject: Re: php question


>
> ok here is the simple code
> <?php
> //first_mail.php
> $mail_to ="tgoode(at)earthlink.net";
> $mail_subject = "testing php mail";
> $mail_body = "testing php mail.\r\n";
> // first line of text with a cf & lf//
> $mail_body = "testing if it gets out and back in.\n";
> // second line of text with a cf & lf//
> if(mail($mail_to, $mail_subject, $mail_body))
> echo "successfully sent the e-mail \"$mail_subject\" to $mail_to.";
> else echo "failed to send the e-mail \"$mail_subject\"."
> ?>
> it just prints one line
> (testing if it gets out and back in)
> using php 4.1 and earthlink's isp
> Terry G.
>
> Paul Roberts wrote:
> >
> > what do you want to happen, what does happen.
> >
> > please post the code around this, are you using this with mail() as the
message? what happens (php ver, os).
> >
> > Best Wishes
> >
> > Paul Roberts
> > mail(at)paul-roberts.com
> > ++++++++++++++++++++++++
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA