Re: Problems with Mail

From: Date: Sat, 17 Feb 2001 04:33:23 +0000
Subject: Re: Problems with Mail
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-40935@lists.php.net to get a copy of this message
thanks ill try that ----- Original Message ----- From: "David Robley" <huntsman@hermes.nisu.flinders.edu.au> To: "Chris Anderson" <m1garand@ameritech.net>; <php-general@lists.php.net> Sent: Wednesday, February 21, 2001 12:39 AM Subject: Re: [PHP] Problems with Mail > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#40935) next »