Re: Problems with Mail
| From: | David Robley | Date: | Wed, 21 Feb 2001 05:39:14 +0000 |
| Subject: | Re: Problems with Mail | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40889@lists.php.net to get a copy of this message | ||
On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:
Oy - your version of Windows appears to be lagging a few days behind the
real world :=)
> true, here it is. Have fun...sorry ^_^
>
> <?php
> include "Nav.inc";
> ?>
>
> <img src=images/feedback.jpg>
>
> <?php
> if(isSet($send) && ($send == 1))
Isn't this redundant? Your test is really if send = 1 do something,
otherwise do something else.
> {
>
> error_reporting(0);
> $Address = "webmaster@nulltechnology.com";
> $Subject = "Feedback From NullTechnology.com";
> $Message = str_replace("\n","<br>",$Message);
> $Mail = mail($Address, $Subject, "$Message \n From: $Return");
This is wrong ^^^^ The additional stuff needs to go in the fourth
parameter if you want it to show up in the From field,; as you have it,
it will be tacked on the end of the message body.
$from = "From: $Return";
$Mail = mail($Address, $Subject, $Message, $Return);
I wonder if you need to do some text wrapping? Although Outlook generally
doesn't seem to care about such things, maybe something in the mail chain
might.
> if($Mail == 1)
and I think this will always be true once PHP has offloaded the mail to
the MTA, even if the MTA drops it on the floor.
<SNIP more code>
Failing that, you might need to look carefully at the actual content of
the message - not getting any unexpected characters or somesusch???
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA